Mail Archives: djgpp/1998/03/23/06:16:21
On Sun, 22 Mar 1998, Robert Hoehne wrote:
> O:\TMP>cat test
> /bin/sh test1
>
> O:\TMP>cat test1
> echo hello
>
> O:\TMP>bash test
> test: /bin/sh: No such file or directory (ENOENT)
For this feature to work, `test' should say "#!/bin/sh" on its first
line, and then invoke `test1' directly. The reason is that this
feature was introduced to allow running scripts which come from Unix,
and those always include such a line. Pseudo-batch files such as
`test' above aren't supported by this feature.
Try this:
O:\TMP>cat test
#!/bin/sh
test1
- Raw text -