bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #!/bin/sh


From: Richard Snow
Subject: Re: #!/bin/sh
Date: Sun, 25 Feb 2001 19:00:30 GMT

Arvind Mani wrote:
> 
> Hi,
> 
> I have not been able to execute scripts with #!/bin/sh
> I get an error "bash: command not found"
> 
> Path, execute permission are set correctly and /bin/sh exists.
> 
> Thanks,
> Arvind
You might check with a hex dump program and see if there are
any unprintable characters (like CR) after sh on the first 
line.  This could happen if you created your script on an
editor that uses DOS/WIN type line endings.  If this is the
case get a little program called dos2unix (and there is one
that goes the other way, unix2dos) to convert the line endings. 


-- 
Richard Snow
http://snowrichard.dtdns.net
snowrichard@earthlink.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]