Re: [問題] export 指令使用問題

看板Linux作者時間13年前 (2012/06/29 12:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
於 西元2012年06月27日 22:34, shihyuyao 提到: > #! /usr/bin/sh > export PATH=/home/yshihyu/armgdb:$PATH > sh test.sh 執行沒有改變 > 必須再shell console 下 > export PATH=/home/yshihyu/armgdbPATH 才可以成功? > 寫成 script 的export 不可以嗎? 你要用 source: .. ./test.sh 來繼承子程序環境變數。 詳見: http://mindream.wang.blog.163.com/blog/static/2325122220084624318692/ -- ⊙翱翔青空.傲視大地⊙
文章代碼(AID): #1FxIX-TE (Linux)
文章代碼(AID): #1FxIX-TE (Linux)