Article View: pl.comp.os.linux.programowanie
Article #72348znak ^M w skrypcie
From: jivanmuktaWYTNIJTO
Date: Thu, 29 Sep 2011 15:35
Date: Thu, 29 Sep 2011 15:35
16 lines
1546 bytes
1546 bytes
Wywołałem w bashu: robert@pecet:~/public_html/secure$ ./clear_tmp.sh bash: ./clear_tmp.sh: /bin/bash^M: zły interpreter: No such file or directory Wszedłem do vima i usunałem ^M. Teraz mam: robert@pecet:~/public_html/secure$ od -c clear_tmp.sh 0000000 # ! / b i n / b a s h \r \n # C 0000020 z y s z c z e n i e k a t a l ... Znowu wywołałem w bashu: robert@pecet:~/public_html/secure$ ./clear_tmp.sh bash: ./clear_tmp.sh: /bin/bash^M: zły interpreter: No such file or directory Tego nie rozumiem. Skąd ^M? -- Wysłano z serwisu OnetNiusy: http://niusy.onet.pl
Technical Details
Message-ID:
<2ca0.0000008b.4e84904a@newsgate.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsgate.m10r2.onet.pl!niusy.onet.plShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsgate.m10r2.onet.pl!niusy.onet.pl From: jivanmuktaWYTNIJTO@poczta.onet.pl Newsgroups: pl.comp.os.linux.programowanie Subject: znak ^M w skrypcie Date: Thu, 29 Sep 2011 17:35:38 +0200 Organization: Onet.pl Lines: 16 Sender: news@newsgate.onet.pl Message-ID: <2ca0.0000008b.4e84904a@newsgate.onet.pl> NNTP-Posting-Host: newsgate.m10r2.onet.pl Mime-Version: 1.0 X-Trace: newsgate.onet.pl 1317310539 3618 213.180.150.14 (29 Sep 2011 15:35:39 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Thu, 29 Sep 2011 15:35:39 +0000 (UTC) X-Mailer: http://niusy.onet.pl X-Forwarded-For: 83.28.122.136, 10.174.28.58 X-User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.2.17) Gecko/20110422 Ubuntu/9.10 (karmic) Firefox/3.6.17 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit