delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/23/06:16:21

Date: Mon, 23 Mar 1998 13:16:20 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
cc: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>, djgpp AT delorie DOT com,
pavenis AT laima DOT acad DOT latnet DOT lv
Subject: Re: Building gcc-2.8.1 for DJGPP
In-Reply-To: <35157C9D.C6E2E6DA@gmx.net>
Message-ID: <Pine.SUN.3.91.980323131551.1968I-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019