zsh-workers
 help / color / mirror / code / Atom feed
* PATH handling broken in zsh 3.1.4
@ 1998-08-04 14:21 C. v. Stuckrad
  1998-08-04 15:20 ` Zefram
  0 siblings, 1 reply; 4+ messages in thread
From: C. v. Stuckrad @ 1998-08-04 14:21 UTC (permalink / raw)
  To: Zsh workers list


Hi!

I just noticed, that zsh *ignores* empty fields in
'path' (created via 'PATH') instead of implying a 'dot'.

'csh' does: setenv PATH bla:
            echo $path
            bla .

'zsh' ignores the trailing colon, and even drops colons when using
'vared PATH' on a Path containig empty fields. Like:
'export PATH=bla::bla'; vared path
bla  bla
   ^^         there _was_ the 'implied dot' :-)

Your's   Stucki


Christoph von Stuckrad       * *  | talk to  | <stucki@math.fu-berlin.de> \
Freie Universitaet Berlin    |/_* | nickname | ...!unido!fub!leibniz!stucki|
Fachbereich Mathematik, EDV  |\ * | 'stucki' | Tel:+49 30 838-75459        |
Arnimallee 2-6/14195 Berlin  * *  |  on IRC  | Fax:+49 30 838-75454       /



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATH handling broken in zsh 3.1.4
  1998-08-04 14:21 PATH handling broken in zsh 3.1.4 C. v. Stuckrad
@ 1998-08-04 15:20 ` Zefram
  1998-08-04 15:37   ` Stucki
  0 siblings, 1 reply; 4+ messages in thread
From: Zefram @ 1998-08-04 15:20 UTC (permalink / raw)
  To: stucki; +Cc: zsh-workers

C. v. Stuckrad wrote:
>I just noticed, that zsh *ignores* empty fields in
>'path' (created via 'PATH') instead of implying a 'dot'.

No it doesn't.  It treats the entries as meaning the current directory.

>'csh' does: setenv PATH bla:
>            echo $path
>            bla .

zsh doesn't actually translate "" -> "." when setting the path, however.

>'zsh' ignores the trailing colon, and even drops colons when using
>'vared PATH' on a Path containig empty fields. Like:
>'export PATH=bla::bla'; vared path

vared on an array variable is a lossy process.  Try "vared PATH" instead.

-zefram


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATH handling broken in zsh 3.1.4
  1998-08-04 15:20 ` Zefram
@ 1998-08-04 15:37   ` Stucki
  1998-08-04 15:44     ` Zefram
  0 siblings, 1 reply; 4+ messages in thread
From: Stucki @ 1998-08-04 15:37 UTC (permalink / raw)
  To: Zefram; +Cc: zsh-workers

Quoting Zefram (zefram@tao.co.uk):
> >'zsh' ignores the trailing colon, and even drops colons when using
> >'vared PATH' on a Path containig empty fields. Like:
> >'export PATH=bla::bla'; vared path
> 
> vared on an array variable is a lossy process.  Try "vared PATH" instead.

OK, that works as supposed, but the 'csh'(ells) do 'really' imply
(meaning create) the dot, so you can work with it!
Shouldn't 'zsh' do the same in 'path' then ? I'd prefer to have
the same behavior!

Stucki

-- 
Christoph von Stuckrad       * *  | talk to  | <stucki@math.fu-berlin.de> \
Freie Universitaet Berlin    |/_* | nickname | ...!unido!fub!leibniz!stucki|
Fachbereich Mathematik, EDV  |\ * | 'stucki' | Tel:+49 30 838-75459        |
Arnimallee 2-6/14195 Berlin  * *  |  on IRC  | Fax:+49 30 838-75454       /


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATH handling broken in zsh 3.1.4
  1998-08-04 15:37   ` Stucki
@ 1998-08-04 15:44     ` Zefram
  0 siblings, 0 replies; 4+ messages in thread
From: Zefram @ 1998-08-04 15:44 UTC (permalink / raw)
  To: Stucki; +Cc: zsh-workers

Stucki wrote:
>OK, that works as supposed, but the 'csh'(ells) do 'really' imply
>(meaning create) the dot, so you can work with it!
>Shouldn't 'zsh' do the same in 'path' then ? I'd prefer to have
>the same behavior!

I'd rather have zsh leave $path exactly as it was set.  POSIX, of course,
requires that $PATH remain exactly as it was set, as is historical
practice.  I'd rather remain compatible with the Bourne shell in this
respect, too.

-zefram


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-08-04 15:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-04 14:21 PATH handling broken in zsh 3.1.4 C. v. Stuckrad
1998-08-04 15:20 ` Zefram
1998-08-04 15:37   ` Stucki
1998-08-04 15:44     ` Zefram

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).