当前位置: 技术问答>linux和unix
export的奇怪问题
来源: 互联网 发布时间:2016-08-24
本文导语: [root@jc-systems x86-qtopia]# cat qenv #!/bin/bash mkdir qtopia-2.2.0-FriendlyARM/qtopia/image/root 2> /dev/null || true export PATH=qtopia-2.2.0-FriendlyARM/qtopia/image/bin:$PATH export LD_LIBRARY_PATH=qtopia-2.2.0-FriendlyARM/qtopia/image/lib:$LD_LIBRARY_PATH export H...
[root@jc-systems x86-qtopia]# cat qenv
#!/bin/bash
mkdir qtopia-2.2.0-FriendlyARM/qtopia/image/root 2> /dev/null || true
export PATH=qtopia-2.2.0-FriendlyARM/qtopia/image/bin:$PATH
export LD_LIBRARY_PATH=qtopia-2.2.0-FriendlyARM/qtopia/image/lib:$LD_LIBRARY_PATH
export HOME=qtopia-2.2.0-FriendlyARM/qtopia/image/root
export QTDIR=qtopia-2.2.0-FriendlyARM/qtopia/image
export QPEDIR=qtopia-2.2.0-FriendlyARM/qtopia/image
export KDEDIR=qtopia-2.2.0-FriendlyARM/qtopia/image/../kde
[root@jc-systems x86-qtopia]# . qenv
: command not found
: command not found
[root@jc-systems x86-qtopia]#
为什么会: command not found
#!/bin/bash
mkdir qtopia-2.2.0-FriendlyARM/qtopia/image/root 2> /dev/null || true
export PATH=qtopia-2.2.0-FriendlyARM/qtopia/image/bin:$PATH
export LD_LIBRARY_PATH=qtopia-2.2.0-FriendlyARM/qtopia/image/lib:$LD_LIBRARY_PATH
export HOME=qtopia-2.2.0-FriendlyARM/qtopia/image/root
export QTDIR=qtopia-2.2.0-FriendlyARM/qtopia/image
export QPEDIR=qtopia-2.2.0-FriendlyARM/qtopia/image
export KDEDIR=qtopia-2.2.0-FriendlyARM/qtopia/image/../kde
[root@jc-systems x86-qtopia]# . qenv
: command not found
: command not found
[root@jc-systems x86-qtopia]#
为什么会: command not found
|
试试:sh qenv
|
. ./qenv
|
./qenv