Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: #!/path/to/arch-indep/zsh -f
- X-seq: zsh-workers 7997
- From: "Owen M. Astley" <oma1000@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: #!/path/to/arch-indep/zsh -f
- Date: Wed, 22 Sep 1999 12:24:44 +0100 (BST)
- Cc: Clint Olsen <olsenc@xxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <990922091316.ZM16279@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
> Most (I don't know if I can say "all") operating systems won't do two
> levels of indirection via #! lines. That is, if the thing on the #!
> line is not itself a binary in executable format, the OS will not
> recognize yet another #! line and launch still another interpreter.
$ <test.sh
#!/u/pol1b/oma1000/bin/zsh
echo f
$ head -n 1 /u/pol1b/oma1000/bin/zsh
#!/bin/sh -
$ ./test.sh
f
$ reportzsh
zsh-3.0.6 dec-alpha-osf4.0
So not on this system.
I thought that most (all) modern operating systems recognise #!
as a magic number in exec()?
Owen
Messages sorted by:
Reverse Date,
Date,
Thread,
Author