mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: jbradford@dial.pipex.com
To: ingo.oeser@informatik.tu-chemnitz.de
Cc: linux-kernel@vger.kernel.org
Subject: Re: [BUG?] binfmt_script: interpreted interpreter doesn't work
Date: Sun, 15 Sep 2002 22:19:03 +0100 (BST)	[thread overview]
Message-ID: <200209152119.g8FLJ37W000666@darkstar.example.net> (raw)
In-Reply-To: <20020915220651.C642@nightmaster.csn.tu-chemnitz.de> from "Ingo Oeser" at Sep 15, 2002 10:06:51 PM

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

  parent reply	other threads:[~2002-09-15 21:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-15 17:15 Pozsar Balazs
2002-09-15 19:05 ` Gilad Ben-Yossef
2002-09-15 19:14   ` Pozsar Balazs
2002-09-15 20:06 ` Ingo Oeser
2002-09-15 21:04   ` Pozsar Balazs
2002-09-15 21:18   ` Mark Veltzer
2002-09-15 21:19   ` jbradford [this message]
     [not found] <200209152055.05322.hpj@urpla.net>
2002-09-15 19:13 ` Pozsar Balazs
2002-09-15 19:34   ` Willy Tarreau
2002-09-15 21:00     ` Pozsar Balazs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200209152119.g8FLJ37W000666@darkstar.example.net \
    --to=jbradford@dial.pipex.com \
    --cc=ingo.oeser@informatik.tu-chemnitz.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®