Mail Archives: djgpp/2001/01/06/05:44:56
> From: 386sx AT my-deja DOT com (386sx)
> Newsgroups: comp.os.msdos.djgpp
> Date: 6 Jan 2001 01:42:25 GMT
>
> My bash 2.04 won't recognize .sh files as executable from the command line
> unless I append the ".sh".
> i.e. "rundos" won't work, but "rundos.sh" works.
Probably because this Bash port was built with the development version
of the library, where .sh (and a few other extensions) were
deliberately excluded from the executable file search.
The reason for this exclusion is that when you have both `foo' and
`foo.sh' in the same directory, and you say "./foo", you want Bash to
run `foo', not `foo.sh'.
The library (and thus Bash) does make exception for the DOS standard
extensions .exe, .com, .bat, and .btm, but only because the stock
shells behave like that.
- Raw text -