ubuntu上的sh連接到dash

最近同事寫的shell腳本在ubuntu上跑時總走不對if的分支。發現ubuntu上的shell默認是bash,但sh對應的是dash,這個須要注意。 1 ubuntu上sh連到dash: zxw@hostname1:~$ uname -a Linux hostname1 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 U
相關文章
相關標籤/搜索