zsh-users
 help / color / mirror / code / Atom feed
* Two questions
@ 1998-01-27 15:06 Bernd Eggink
  0 siblings, 0 replies; 6+ messages in thread
From: Bernd Eggink @ 1998-01-27 15:06 UTC (permalink / raw)
  To: zsh mailing list

1. The manual says that array elements are numbered beginning with 1
unless the KSH_ARRAYS option is set. But actually array[0] works fine
and seems to be a synonym for array[1]. Bug or feature? This has the
great disadvantage that you cannot rely on "$array[i,j]" always being
empty if j < i.

2. There is an inconsistency in the behavior of the expression

   ${a:h}

which is said to give the "head" of $a. If a=x/y/z, the result is x/y;
but if a=x, the result is x. My understanding of "head" is that the
result in the latter case should be empty. Again: Bug or feature?

Regards,
	Bernd

-- 
Bernd Eggink
Regionales Rechenzentrum der Universitaet Hamburg
eggink@rrz.uni-hamburg.de
http://www.rrz.uni-hamburg.de/eggink/BEggink.html


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <20040302104703.GC1981@puritan.pcp.ath.cx>]

end of thread, other threads:[~2004-03-02 11:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-27 15:06 Two questions Bernd Eggink
     [not found] <20040302104703.GC1981@puritan.pcp.ath.cx>
2004-03-02 10:58 ` Two Questions Peter Stephenson
2004-03-02 11:07   ` Nikolai Weibull
2004-03-02 11:14     ` Nikolai Weibull
2004-03-02 11:33       ` Peter Stephenson
2004-03-02 11:48         ` Nikolai Weibull

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