lkml.org 
[lkml]   [2002]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [BUG?] binfmt_script: interpreted interpreter doesn't work
    Date
    > > This may well not be bug, rather an intended feature, but please enlighten
    > > me why the following doesn't work:
    > >
    > > I have two scripts:
    > > /home/pozsy/a:
    > > #!/bin/sh
    > > echo "Hello from a!"
    > >
    > > /home/pozsy/b:
    > > #!/home/pozsy/a
    > > echo "hello from b!"
    > >
    > > Both of them has +x permissions.
    > > But I cannot execute the /home/pozsy/b script:
    > >
    > > Isn't this "indirection" allowed?

    The whole #!/foo/bar notation seems to be very mis-understood these days, it is not just notation chosen at random to be an indicator of the interpreter for the rest of the script - a good explaination can be found at faqs.org:

    http://www.faqs.org/faqs/unix-faq/faq/part3/section-16.html
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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