Simple Bash Script Question

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Bob Cober
日付:  
題目: Simple Bash Script Question
I am having trouble exporting a shell variable from a Bash script.

Here is the script test.sh:
#! /bin/sh
echo it works
export IA32ROOT="/opt/intel/compiler50/ia32"
echo done

Here is the output:
[root@localhost bin]# ./test.sh
it works
done
[root@localhost bin]# echo $IA32ROOT

[root@localhost bin]#

As you can see, there is no export nor any error...

Any advice would be greatly appreciated

Thanks
Bob