請問shell script中export環境變數的問題 - Linux

Table of Contents

如果現在有兩個script

script1和script2

內容分別是
#script2

export PORT=Linux

#end of file
=============
#script1

./script2
echo $PORT

#end of file

請問有辦法讓script2中export的變數繼續存在script1裡面嗎?


--

All Comments

Kama avatarKama2008-09-17
x = $PORT