mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: binfmt_script
       [not found] <19980616092717.A16431@css.tayloru.edu>
@ 1998-06-16 14:27 ` Jeff Voskamp
  0 siblings, 0 replies; only message in thread
From: Jeff Voskamp @ 1998-06-16 14:27 UTC (permalink / raw)
  To: Aron Griffis; +Cc: linux-kernel

>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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-06-16 14:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <19980616092717.A16431@css.tayloru.edu>
1998-06-16 14:27 ` binfmt_script Jeff Voskamp

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®