Menu

#1 'pequel' script contains CRLF at end of each line

open
nobody
None
5
2006-09-14
2006-09-14
Eric Safern
No

The script 'pequel' contains \r\n (also known as
CRLF - DOS/Windows-style) at the end of each line.

This breaks the script on UNIX, such that
$perl /usr/bin/pequel

works fine, but
$/usr/bin/pequel
returns the message
: bad interpreter: No such file or directory

The fix is simple - remove that pesky carriage return
from the first line. On UNIX, this will work:

$ tr -d '\r' < pequel > /tmp/p
$ chmod +x /tmp/p
$ mv /tmp/p pequel

more info:

http://faq.perl.org/perlfaq7.html#What_does_bad_interp

Discussion


Log in to post a comment.