Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: emulate -L sh impact on $0, $argv
- X-seq: zsh-workers 37852
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: "Nikolay Aleksandrovich Pavlov (ZyX)" <kp-pav@xxxxxxxxx>
- Subject: Re: emulate -L sh impact on $0, $argv
- Date: Sun, 31 Jan 2016 20:13:20 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=+cjEgaZ9wCsljfKAeFqfWgZ2sSFKQSRlJahnDViRPnE=; b=kIDbUubP70VrVX5Huw/kN31rqIqIP9wm5aWyLbSJ0AKycuophJyajdXwqQDCc//5Nf zvDqHIQ+HJ0wz57UdwIgGjt81XpV5aezGCK/jkZ2bMgiqwRbkmNNRP7iqfLnutw420sz CqR3ab9MlAtfZIIoLqT1YoXQAYP3GBNNYkQon8uY2S5UX1hfAduPCKkubbHcVqqJcYsA Wyth1httMqS88kfsCzKqta69sWo8m+3kOvZCHg+L2BgjHNIjhg6waYxJ08+zhA9FgjKM k3Oj364PQY4QS6SKtJr/Sl8mIpLNCLN3b0AT2RJ70hAoNMHpPyvxVghYWz7RJsRFQZC4 mUbg==
- In-reply-to: <7850171454263927@web30j.yandex.ru>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDMSiWckCwSijk8i6js86OCNeRuwfkVV1xjGMv_W554_Q@mail.gmail.com> <7850171454263927@web30j.yandex.ru>
On 31 January 2016 at 19:12, Nikolay Aleksandrovich Pavlov (ZyX)
<kp-pav@xxxxxxxxx> wrote:
> And in any case has nothing to do with $0, $0 is never present in $argv.
Are you sure? The examples show $0 is in $argv[0]
> Array indexing *may* start with zero, controlled by KSH_ARRAYS
> option which is again different in zsh and sh emulation mode.
In sh argv[0] is the same as argv[1]? Because again, you say I
shouldn't be able to use argv[0] without KSH_ARRAYS, but in the
examples, I do
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author