Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: #!/path/to/arch-indep/zsh -f
- X-seq: zsh-workers 7996
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Clint Olsen <olsenc@xxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: #!/path/to/arch-indep/zsh -f
- Date: Wed, 22 Sep 1999 09:13:16 +0000
- In-reply-to: <19990921182350.A45626@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990921182350.A45626@xxxxxxxxxxxxxxxx>
On Sep 21, 6:23pm, Clint Olsen wrote:
} Subject: #!/path/to/arch-indep/zsh -f
}
} I decided to change my script to reflect the copy of my shell, and attempt
} to direct it to the path of my zsh wrapper itself causes the script to
} misfire when it is executed from *csh.
And the error you get is something like "exec format error", I suppose.
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.
The workaround is to write your wrapper in C and compile it.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author