> > 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/