tweet:2019:0201_01
no way to compare when less than two revisions
差分
このページの2つのバージョン間の差分を表示します。
| — | tweet:2019:0201_01 [2019/02/01 16:48] (現在) – 作成 seirios | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== shbang ====== | ||
| + | Shell scriptを書くときに sh-bang(''# | ||
| + | |||
| + | どこかでまとめるかも。 | ||
| + | |||
| + | <code bash recipie.sh> | ||
| + | #! ./test.sh | ||
| + | </ | ||
| + | |||
| + | <code bash recipe.conf> | ||
| + | # Configuration file for recipe | ||
| + | </ | ||
| + | |||
| + | <code bash test.sh> | ||
| + | echo " | ||
| + | |||
| + | echo " | ||
| + | [ ! -z " | ||
| + | [ ! -z " | ||
| + | </ | ||
| + | |||
| + | んで、これを試す。 | ||
| + | |||
| + | < | ||
| + | $ chmod +x test.sh recipe.sh | ||
| + | $ ./recipe.sh | ||
| + | </ | ||
| + | |||
| + | 動かない。 | ||
| + | |||
| + | 調べてみた。 | ||
| + | * [[http:// | ||
| + | へぇ。shbangでshellscriptを呼び出せないのか... | ||
| + | * [[https:// | ||
| + | ほほう。/ | ||
| + | |||
| + | <code bash recipie.sh> | ||
| + | #! / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | $ ./recipe.sh recipe.conf | ||
| + | Argument=2 | ||
| + | Myname=./ | ||
| + | Arg[1] = ./recipe.sh | ||
| + | Arg[2] = recipe.conf | ||
| + | </ | ||
| + | * ふむ。FreeBSDの/ | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | なるほどね。 | ||
| + | |||
| + | ちょっとPOSIX的に微妙だけど、仕方がないこととするか... | ||
tweet/2019/0201_01.txt · 最終更新: by seirios
