呉裕雄-天生自然ShellX学習ノート:Shellファイルを含む
1387 ワード
,Shell 。 。
Shell :
. filename # (.)
source filename
shell 。
test1.sh :
#!/bin/bash
url="http://www.runoob.com"
test2.sh :
#!/bin/bash
# . test1.sh
. ./test1.sh
#
# source ./test1.sh
, test2.sh :
$ chmod +x test2.sh
$ ./test2.sh
: test1.sh 。