zsh robi to inaczej z $0

Tomasz Pala gotar w polanet.pl
Nie, 11 Kwi 2004, 00:24:49 CEST


On Sun, Apr 11, 2004 at 00:09:18 +0200, Tomasz Pala wrote:

> > Nagle w zsh zmieniło się to co znajduje się w $0 - wcześniej było poprawnie 
> 
> Tak jest poprawnie.
> 
> > (czyli /bin/zsh),
> 
> /bin/zsh ma być tylko wtedy, gdy wykonuje się jako część shella...

http://www.opengroup.org/onlinepubs/007904975/utilities/xcu_chap02.html#tag_02_05_01
http://www.opengroup.org/onlinepubs/007904975/utilities/sh.html

Special parameter 0 (see Special Parameters ) shall be set to the
value of command_file. If sh is called using a synopsis form that omits
command_file, special parameter 0 shall be set to the value of the first
argument passed to sh from its parent (for example, argv[0] for a C
program), which is normally a pathname used to execute the sh utility.

-- 
GoTaR <priv0.onet.pl->gotar>
http://vfmg.sourceforge.net/



Więcej informacji o liście dyskusyjnej pld-devel-pl