zsh-workers
 help / color / mirror / code / Atom feed
From: <hzoli@vnet.IBM.COM> (Zoltan T. Hidvegi)
To: alainc@nortel.ca (Alain Caron)
Cc: zsh-workers@math.gatech.edu (Zsh workers list)
Subject: Re: zsh not sourcing /etc/profile?
Date: Mon, 14 Apr 1997 18:38:45 -0400 (EDT)	[thread overview]
Message-ID: <9704142238.AA21868@lotto.fishkill.ibm.com> (raw)
In-Reply-To: <199704142054.QAA13764@euclid.skiles.gatech.edu> 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


  reply	other threads:[~1997-04-14 22:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-14 19:51 Alain Caron
1997-04-14 22:38 ` Zoltan T. Hidvegi [this message]
     [not found] <5ifr3t$sub@charm.il.ft.hse.nl>
     [not found] ` <risqi5.8t6.ln@sequeira.powernet.co.uk>
     [not found]   ` <5irn2i$b2p@charm.il.ft.hse.nl>
     [not found]     ` <5itdj0$dc0@bmtlh10.bnr.ca>
1997-04-14 17:42       ` Richard Coleman
1997-04-14 18:45         ` Zoltan T. Hidvegi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9704142238.AA21868@lotto.fishkill.ibm.com \
    --to=hzoli@vnet.ibm.com \
    --cc=alainc@nortel.ca \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).