zsh-users
 help / color / mirror / code / Atom feed
From: Bernd Eggink <eggink@rrz.uni-hamburg.de>
To: zsh mailing list <zsh-users@math.gatech.edu>
Subject: Two questions
Date: Tue, 27 Jan 1998 16:06:07 +0100	[thread overview]
Message-ID: <34CDF7DF.EBE69AEE@rrz.uni-hamburg.de> (raw)

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


             reply	other threads:[~1998-01-27 15:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-27 15:06 Bernd Eggink [this message]
     [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

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=34CDF7DF.EBE69AEE@rrz.uni-hamburg.de \
    --to=eggink@rrz.uni-hamburg.de \
    --cc=zsh-users@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).