cygwin重灌後,原本的shell script不能跑 - Linux
By Agnes
at 2010-07-02T14:37
at 2010-07-02T14:37
Table of Contents
我在我的 cygwin 上run 了一下, script 應該沒問題, 可以抓東西 (不過內容是空的)
你遇到的問題, 從錯誤訊息來看, 應該是在每一行後面有一些奇怪的 end of line
字元, 你是從哪裡copy 這檔案的? 用 vi editor 每行後面會有奇怪的字元嗎?
※ 引述《ThiefFan (不務正業的賊)》之銘言:
: 標題: [問題] cygwin重灌後,原本的shell script不能跑
: 時間: Fri Jul 2 09:21:17 2010
:
: $ ./getlist.sh
: ./getlist.sh: line 2: $'\r': command not found
: ./getlist.sh: line 3: syntax error near unexpected token `$'\r''
: '/getlist.sh: line 3: `for ((i=385; i<450; i++))
:
--
Tags:
Linux
All Comments
By Kelly
at 2010-07-06T02:33
at 2010-07-06T02:33
By Valerie
at 2010-07-07T23:15
at 2010-07-07T23:15
By Olga
at 2010-07-10T18:20
at 2010-07-10T18:20
By Ula
at 2010-07-14T02:33
at 2010-07-14T02:33
By Zora
at 2010-07-16T20:12
at 2010-07-16T20:12
Related Posts
cygwin重灌後,原本的shell script不能跑
By Ivy
at 2010-07-02T09:21
at 2010-07-02T09:21
Ubuntu使用心得
By Annie
at 2010-07-02T09:15
at 2010-07-02T09:15
請問Linux系統底下有這種程式嗎?
By Sarah
at 2010-07-02T05:18
at 2010-07-02T05:18
rsync問題(用Python)
By Isabella
at 2010-07-02T05:07
at 2010-07-02T05:07
有人用opensuse當平常桌機使用嗎?
By Carolina Franco
at 2010-07-02T03:50
at 2010-07-02T03:50