Re: GNU/Linux stance by Richard Stallman

Thomas Wouters (thomas@xs4all.nl)
Sat, 27 Mar 1999 12:36:16 +0100


On Sat, Mar 27, 1999 at 11:48:00AM +0100, Olaf Titz wrote:

> > Never mind /bin/false; the original /bin/true was an *empty file*.

> Wouldn't that depend on the shell to give a correct result?
> exec()ing an empty file should return ENOEXEC.

Way back when, exec()ing a non-binary file without a shebang line
automatically meant /bin/sh would get a shot. And as you can see:

daemon:~ > echo > test .sh
daemon:~ > sh -f test.sh
daemon:~ > echo $?
0

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/