Try running dos2unix on your script. Or look for control-M characters as line endings in your editor. MC's mcedit shows them.1. will not run from shebang 2. will run with "perl myscript" 3. will look fine with "cat myscript".
In reply to Re: problem with shebang
by zentara
in thread problem with shebang
by miraceti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |