From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: pws@ifh.de (Peter Stephenson)
Cc: zsh-workers@math.gatech.edu
Subject: Re: argzero while sourcing standard scripts
Date: Tue, 24 Sep 1996 21:42:02 +0200 (MET DST) [thread overview]
Message-ID: <199609241942.VAA09915@bolyai.cs.elte.hu> (raw)
In-Reply-To: <199609161009.MAA19596@hydra.ifh.de> from Peter Stephenson at "Sep 16, 96 12:09:10 pm"
Peter Stephenson wrote:
> Zsh doesn't set argzero (i.e. $0) while sourcing standard scripts,
> although it does when sourcing anything else so long as
> FUNCTIONARGZERO is set (which it is by default for native emulation
> and I can't think of a good reason for turning it off for a `real'
> zsh). This means the error messages from standard scripts are rather
> unhelpful in that you don't get the name of the script with the error.
It is certainly wrong that the filename isn't mentioned in the error
message but setting argzero it probably the wrong solution for that. One
may want to invoke zsh under different names to get customized behaviour.
In the startup files $0 can be used to decide the prefered option settings
etc. OK, the ZSH_NAME parameter can be used for that. But when you
execute a script $0 is set to the script name which can be used in zshenv.
Setting $0 to zshenv would make it impossible to get the name of the script
we are executing.
Zoltan
next prev parent reply other threads:[~1996-09-24 19:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-16 10:09 Peter Stephenson
1996-09-16 11:45 ` Peter Stephenson
1996-09-24 19:42 ` Zoltan Hidvegi [this message]
1996-09-25 9:59 ` Peter Stephenson
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=199609241942.VAA09915@bolyai.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=pws@ifh.de \
--cc=zsh-workers@math.gatech.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.
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).