lkml.org 
[lkml]   [1999]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: GNU/Linux stance by Richard Stallman
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:51    [W:2.030 / U:0.488 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site