回文章列表
作者wahoho.bbs@ptt.cc (..) 看板: linux
標題[問題] 請問shell script中export環境變數的問題
時間批踢踢實業 (2008/09/15 Mon 20:04:46)
如果現在有兩個script

script1和script2

內容分別是
#script2

export PORT=Linux

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

/script2
echo $PORT

#end of file

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


--
※ 發信站: 批踢踢實業坊(ptt.cc) 
◆ From: 220.138.76.100
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻