From: jeff@bifrost.voskamp.waterloo.on.ca (Jeff Voskamp)
To: agriffis@css.tayloru.edu (Aron Griffis)
Cc: linux-kernel@vger.rutgers.edu
Subject: Re: binfmt_script
Date: Tue, 16 Jun 1998 10:27:12 -0400 (EDT) [thread overview]
Message-ID: <m0ylwhc-0003XwC@bifrost.voskamp.waterloo.on.ca> (raw)
In-Reply-To: <19980616092717.A16431@css.tayloru.edu> from "Aron Griffis" at Jun 16, 98 09:27:17 am
>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
parent reply other threads:[~1998-06-16 14:18 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <19980616092717.A16431@css.tayloru.edu>]
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=m0ylwhc-0003XwC@bifrost.voskamp.waterloo.on.ca \
--to=jeff@bifrost.voskamp.waterloo.on.ca \
--cc=agriffis@css.tayloru.edu \
--cc=linux-kernel@vger.rutgers.edu \
/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®