Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh not sourcing /etc/profile?
- X-seq: zsh-workers 3077
- From: <hzoli@xxxxxxxxxxxx> (Zoltan T. Hidvegi)
- To: alainc@xxxxxxxxx (Alain Caron)
- Subject: Re: zsh not sourcing /etc/profile?
- Date: Mon, 14 Apr 1997 18:38:45 -0400 (EDT)
- Cc: zsh-workers@xxxxxxxxxxxxxxx (Zsh workers list)
- In-reply-to: <199704142054.QAA13764@xxxxxxxxxxxxxxxxxxxxxxxx> from Alain Caron at "Apr 14, 97 03:51:00 pm"
Alain Caron wrote:
[...]
> Even there, the behaviour is not the same as ksh.
[...]
> under ksh:
> 4> function foo { echo $0 }
> 5> foo
> foo
>
> under zsh :
[...]
> 6> function foo { echo $0 }
[...]
> 12> emulate ksh
[...]
> 14> foo
> zsh
Well, POSIX requires that $0 should always be the name used to invoke the
shell. The latest ksh claims to be POSIX conformant... Of course it is
possible to add a new option called something like SCRIPT_ARGZERO but that
would probably just further increase the confusion.
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author