Linuxbash 迴圈語法錯誤 - LinuxKama · 2009-12-26Table of ContentsPostCommentsRelated Posts#!/bin/bash for (( i=1; i<=10; i++ )) =>> 這行 Bad for loop variable do echo $i done 看鳥哥上的語法就這個樣子 請問是錯在哪裡阿 -- LinuxAll CommentsCharlie2009-12-31...直接執行就對了== 用sh test.sh 才會這樣怎會這樣==....Wallis2010-01-02因為sh是sh,bash是bash,拿明朝的sh去斬清朝的bash這樣對嗎Steve2010-01-03for ((..)); do 這個是bash才有的新東西..sh是用 for .. in .. 的做法..Oliver2010-01-05喔喔 以為sh就是bash ...= ="Kristin2010-01-05bash算是sh++吧,比較大的改變是,一些sh需要透過外部指令才能完成的工作,現在都整進bash的內建功能@.@Robert2010-01-06我怎覺得echo $i後面少一個;Ophelia2010-01-08要嗎==?Quanna2010-01-09可以貼一下這個 command 的結果嗎? $> ls -l $(which sh)Connor2010-01-13我猜應該是 /bin/sh --> dash 的關係.Caitlin2010-01-14/bin/sh -> dash 真的@@Ophelia2010-01-16條件判斷之後才需要;吧? 一般敘述不用加 又不是C/C++ @_@Related Poststar解壓縮的問題硬碟分割的問題硬碟分割的問題我的 Gnome-Applet-sensors 無法顥示溫度grub雙系統問題求救!
All Comments