zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: easy
Date: Wed, 23 Sep 2015 08:59:18 -0700	[thread overview]
Message-ID: <5602CC56.8080501@eastlink.ca> (raw)
In-Reply-To: <20150911191854.59bcadb5@ntlworld.com>

When we do this:

     $ test () {  echo @[2,-1]; }
     $ test one two three four five
      two three four five

... why is it that the leading number works intuitively but the second one
is 'off by one' so to speak?  Nothing is removed from the end of the array
so one might expect " [2,-0] ".  I don't doubt there's a good reason but
what is it?  How should I think the syntax?


  reply	other threads:[~2015-09-23 15:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-11 18:18 5.1.1 available Peter Stephenson
2015-09-23 15:59 ` Ray Andrews [this message]
2015-09-23 19:45   ` easy Bart Schaefer
2015-09-23 20:45     ` easy Ray Andrews

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=5602CC56.8080501@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /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).