lkml.org 
[lkml]   [1998]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: binfmt_script
    Date
    >There appears to be a restriction on scripts that allows only a single
    >parameter to the interpreter in the #! line. For example:
    >
    > #!/bin/csh -fb <-- fine
    > #!/bin/csh -f -b <-- not allowed
    >
    >Is there a reason for this restriction?
    >
    >-Aron

    Given a file

    Foo
    ---
    #!<interpreter> <options>

    the kernel changes the command line

    Foo <args>

    to

    <interpreter <options> Foo <args>

    Once you know that all should be clear.

    Hint: the -f option in csh takes the next "word" as the name of the file
    to run. The first verstion gives "csh -fb blah args" while the second
    gives "csh -f -b blah args" and csh tries to run the script "-b".

    As far as I know all unices (?) do it this way.

    Jeff Voskamp

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu

    \
     
     \ /
      Last update: 2005-03-22 13:43    [W:0.018 / U:0.456 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site