Cannot run scripts in FC3 if the first line is a comment specifying interpreter

Nick Bargnesi nbargnesi at gmail.com
Sat Feb 19 18:35:55 UTC 2005


On Sat, 19 Feb 2005 03:23:50 -0800 (PST), s. h. <csh_jp at yahoo.com> wrote:
> Hi,
> 
> Just installed FC3 and updated. But I found that I
> cannot run scripts if the first line is the comment
> specifying the interpretor, like:
> 
> =============
> #!/bin/bash
> echo "aaa"
> =============
> 
> but a script without that first line works fine:
> 
> =============
> echo "aaa"
> =============
> 
> Does anyone have the same problem? How to fix it?
> 

Even though you're off topic - I'd bet the format of the text file
isn't unix.  Sounds like bash is trying to execute a script that's in
dos format.

> thanks,
> Chris
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
> 
> --
> fedora-devel-list mailing list
> fedora-devel-list at redhat.com
> http://www.redhat.com/mailman/listinfo/fedora-devel-list
> 


-- 

Nick Bargnesi
http://www.den-4.com
Den 4 Software

pub  1024D/E8BD2FD0 2004-12-02 Nick Bargnesi <nbargnesi at gmail.com>
Key fingerprint = 6F9D 9404 63CD 2B04 DE7A  0F9D A1ED C1B0 E8BD 2FD0
sub  2048g/56C5D45B 2004-12-02




More information about the fedora-devel-list mailing list