bash export not working for only one variable

前端 未结 2 1327
清歌不尽
清歌不尽 2020-12-04 02:44

Occasionally when I export in bash it doesn\'t give an error but it doesn\'t set the environment variable either. Here\'s what I mean:

This works:

ba         


        
2条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 03:29

    Try this :

    oldifs=$IFS
    IFS=$'\n'
    export DYLD_LIBRARY=$ABC_HOME
    env | grep DYLD
    IFS=$oldifs
    

提交回复
热议问题