Mail Archives: djgpp/1997/11/12/07:11:42
On Tue, 11 Nov 1997, Nate Eldredge wrote:
> >I have written script file (-rwxr-xr-x) for bash in the editor of Rhide
> >1.4.1 for Linux . Bash does not find this file. Same file written by Jed
> >works. What not correctly? :-(
> Hmm. What do you mean, "does not find the file"?
> Try `diff' between the two versions.
> Make sure the magic "#! /bin/bash" is there.
> Is it along the search path, or are you using an explicit path for it?
Check out the following two gotchas:
- you need to make the script executable:
chmod a+x script
- it needs to be on the PATH, or have an explicit "./" prefix:
./script
The latter is because on Unix, by default the current working
directory is NOT searched for executables.
- Raw text -