Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Handling of *ARGZERO options, for Zsh <= 5.3
- X-seq: zsh-workers 42199
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Subject: Re: Handling of *ARGZERO options, for Zsh <= 5.3
- Date: Tue, 2 Jan 2018 11:35:33 -0800
- Cc: Sebastian Gniazdowski <psprint@xxxxxxxxxxx>, "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Dl+aQ/snXgU1URZ8KWbEB6rNyYZ+SOXApmxaY9154dY=; b=psFRoEurE1uSJkRGYrtD/sCieKuaCJtPSizxHLvwWOkta2320GuO+xwsLe+BJi8Dvw 5rO28FIg9HnIyPRuahBYlB/DmlHThso0M+FMQf4RHhnsvCypzep/6mFMwsLR1Tmjm5DT L/HK79eyjuG5p0ysoe98gPjA0xZn1PFZgDrIVm1o4LuLL9RxMVRIZ02M2N46eE8Ksz6T AfIc3HGzPMhb4tlbUrU2yyn6u5RsLoQSHedKIplucmIOfm7nZyIBbXNzD2T7bFkvwTj/ GnAIxfW8GNO+UIFez2uoAD3UYJ5zhCQ/pPdcprDOlw90nBmHGKW1PFZJ95Ob/mTlSThE NDSA==
- In-reply-to: <786CAD82-87B3-4ECD-BFDF-99E7D4E1D5F3@dana.is>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.5a4b5c52.d9c84bc.13d7@zdharma.org> <786CAD82-87B3-4ECD-BFDF-99E7D4E1D5F3@dana.is>
On Tue, Jan 2, 2018 at 8:57 AM, dana <dana@xxxxxxx> wrote:
>
> If the problem is ZSH_ARGZERO, shouldn't this work in like 5.0+?
>
> () {
> setopt local_options posix_argzero
> MY_ARGZERO=$0
> }
For considerably older (but still not the oldest) zsh you can use
$funcfiletrace:
zmodload zsh/parameter
print -r -- ${ZSH_ARGZERO:=${${funcfiletrace[-1]}[(ws/:/)1]}}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author