看板 [ Linux ]
討論串[問題] 請問shell的問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者WalkingIce ( 殺手哥吉拉 13)時間16年前 (2009/09/21 02:40), 編輯資訊
0
0
0
內容預覽:
source 的時候是在 "現在的 shell 裡面去執行". man bash 就可以看見這一段. source filename [arguments]. Read and execute commands from filename in the current shell. environm
(還有28個字)

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者whisp1222時間16年前 (2009/09/20 21:47), 編輯資訊
0
0
0
內容預覽:
script第一行的#!XXX是可以用來指定該shell script的檔案要用哪一個shell下去執行. 例如說 #!/bin/tcsh是指定用tcsh下去跑這個script. 但是假設說我要執行 a.sh. a.sh 第一行用 #!/bin/tcsh. 而我在bash中用source a.sh.
首頁
上一頁
1
下一頁
尾頁