Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: emulate -L sh impact on $0, $argv



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