From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11130 invoked by alias); 3 Jan 2018 05:08:11 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42200 Received: (qmail 23127 invoked by uid 1010); 3 Jan 2018 05:08:11 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(-1.9/5.0):. Processed in 3.574795 secs); 03 Jan 2018 05:08:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new using ClamAV (16) Date: Wed, 3 Jan 2018 06:08:03 +0100 From: Sebastian Gniazdowski To: dana Cc: zsh-workers@zsh.org Message-ID: In-Reply-To: References: Subject: Re: Handling of *ARGZERO options, for Zsh =?utf-8?Q?<=3D_?=5.3 X-Mailer: Airmail (442) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline On 2 Jan 2018 at 17:57:26, dana (dana@dana.is) wrote: > If the problem is ZSH_ARGZERO, shouldn't this work in like 5.0+? > > () { > setopt local_options posix_argzero > MY_ARGZERO=$0 > } I should be able to use this, by running it in plugin manager, and setting ZSH_BINARY or ZSH_BIN_PATH, so that this var can then be used in substitution, thanks. Although overall rather bad news, because plugins like z-sy-h can be just sourced. Someone with source-only setup (no p-m) could run such snippet himself, though. Kinda hard that Zsh doesn't set this information. -- Sebastian Gniazdowski psprint /at/ zdharma.org