From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Clint Olsen <olsenc@ichips.intel.com>, zsh-workers@sunsite.auc.dk
Subject: Re: #!/path/to/arch-indep/zsh -f
Date: Wed, 22 Sep 1999 09:13:16 +0000 [thread overview]
Message-ID: <990922091316.ZM16279@candle.brasslantern.com> (raw)
In-Reply-To: <19990921182350.A45626@ichips.intel.com>
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
next prev parent reply other threads:[~1999-09-22 9:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-22 1:23 Clint Olsen
1999-09-22 7:59 ` Peter Stephenson
1999-09-22 8:58 ` Clint Olsen
1999-09-22 8:33 ` Peter Stephenson
1999-09-22 16:39 ` Clint Olsen
1999-09-23 16:42 ` Bart Schaefer
1999-09-22 9:13 ` Bart Schaefer [this message]
1999-09-22 11:24 ` Owen M. Astley
1999-09-22 16:28 ` Bart Schaefer
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=990922091316.ZM16279@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=olsenc@ichips.intel.com \
--cc=zsh-workers@sunsite.auc.dk \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).