剛剛在寫bash script的時候
完成後要執行
輸入的command
$ sh test.sh
結果出現
let command not found
上網找到答案 原來只要
$ bash test.sh
執行就沒有問題了
原因是 bin/sh is dash not bash
聽不太懂他的意思 想了解是什麼原因
謝謝~
--
完成後要執行
輸入的command
$ sh test.sh
結果出現
let command not found
上網找到答案 原來只要
$ bash test.sh
執行就沒有問題了
原因是 bin/sh is dash not bash
聽不太懂他的意思 想了解是什麼原因
謝謝~
--
All Comments