Subject: Re: emulate -L sh impact on $0, $argv
From: Sebastian Gniazdowski <[email-masked]>
To: "Nikolay Aleksandrovich Pavlov (ZyX)" <[email-masked]>
Cc: Zsh hackers list <[email-masked]>
Date: Sun, 31 Jan 2016 20:13:20 +0100
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On 31 January 2016 at 19:12, Nikolay Aleksandrovich Pavlov (ZyX)
<[email-masked]> 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