Zsh Mailing List Archive
Messages sorted by:
Re: how to refer to basename of $0
- X-seq: zsh-users 16158
- From: Tomasz Moskal <ramshackle.industries@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: how to refer to basename of $0
- Date: Fri, 29 Jul 2011 12:48:03 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:reply-to:to:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=d8kR1OsZ8Ncqk4mlJsWMwuKPNVc4RzkhNLrez2sTZiw=; b=GNOCTXsZmkv12B33xcwg2Cy7Gwh6edu691bDy4YiKkklJLy5T1At9WOhFji3KDiA9N 4qnJycVKewlwVLp373Q5000knpKEfvawhSAwBN8gm2YrPuYxWpzwscTU7SFmpfjWbTpZ zlcAfWCbKutIcaBK+FzJWZz1ri1QoYTPxQMDE=
- In-reply-to: <110728210438.ZM24370@torch.brasslantern.com>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHuKhx9A3HCUBjU4JgRsbj52s7DQ6HGewT=Y9uRMDGDemail@example.com> <alpine.LNX.firstname.lastname@example.org> <CADjGqHt4-PnBNC0QgyRVw0H-HtCWcRp_aA7N3zJoH+xK_676kw@mail.gmail.com> <110728210438.ZM24370@torch.brasslantern.com>
- Reply-to: ramshackle.industries@xxxxxxxxx
On Thu, 2011-07-28 at 21:04 -0700, Bart Schaefer wrote:
> On Jul 28, 9:39pm, TJ Luoma wrote:
> } Is it even possible to set NAME in .zsh* (and have it return
> } 'test.zsh' or are they called too early in the process?
> This is sounding awfully familiar. Oh, it was on zsh-workers, where
> some of the -users crowd would not have seen it.
> Starts here:
> Interesting branch begins here:
Thanks for the links, but I am still baffled - basename $0 is working
here without any problems:
% cat ~/.zshenv
% cat ./foo
Obviously it stops when I comment out unsetopt function_argzero but
with it in place it there is no problems with reporting the script name
- zsh -i / -l / -f make no difference.
Only options I have set in .zshrc are to do with history, basic
completion and prompt (what can I say? I am just getting acquainted with
zsh). Obviously the OPEN_PLAN_OFFICE_NO_VIGILANTE_ATTACKS option is gone
as well. Global zshenv has nothing but path and umask. So as you can see
there is no weirdness in any of the files alas basename $0 do behave
in a different way than described here on on -workers.
What may be the reason of that?
Messages sorted by: