From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15369 invoked from network); 14 Apr 1997 22:41:33 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 14 Apr 1997 22:41:33 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA16227; Mon, 14 Apr 1997 18:36:05 -0400 (EDT) Resent-Date: Mon, 14 Apr 1997 18:36:05 -0400 (EDT) From: (Zoltan T. Hidvegi) Message-Id: <9704142238.AA21868@lotto.fishkill.ibm.com> Subject: Re: zsh not sourcing /etc/profile? In-Reply-To: <199704142054.QAA13764@euclid.skiles.gatech.edu> from Alain Caron at "Apr 14, 97 03:51:00 pm" To: alainc@nortel.ca (Alain Caron) Date: Mon, 14 Apr 1997 18:38:45 -0400 (EDT) Cc: zsh-workers@math.gatech.edu (Zsh workers list) X-Mailer: ELM [version 2.4ME+ PL31 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"kWFsx1.0.Uz3.K5hKp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3077 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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