zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Justin M Wozniak <jwozniak@cse.nd.edu>, zsh-users@sunsite.dk
Subject: Re: print entire array *with* subscript?
Date: Sat, 11 Feb 2006 05:20:37 +0000	[thread overview]
Message-ID: <1060211052037.ZM5321@candle.brasslantern.com> (raw)
In-Reply-To: <Pine.GSO.4.58.0602102314580.139@cse.nd.edu>

On Feb 10, 11:15pm, Justin M Wozniak wrote:
} 
} In your solution, what is the point of (r) ?

Subscript Flags
---------------

If the opening bracket, or the comma in a range, in any subscript
expression is directly followed by an opening parenthesis, the string up
to the matching closing one is considered to be a list of flags, as in
`NAME[(FLAGS)EXP]'.  The flags currently understood are:

 ...

r
     Reverse subscripting: if this flag is given, the EXP is taken as a
     pattern and the result is the first matching array element,
     substring or word (if the parameter is an array, if it is a
     scalar, or if it is a scalar and the `w' flag is given,
     respectively). ...
 


  reply	other threads:[~2006-02-11  5:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200602101756.59858.arvidjaar@mail.ru>
2006-02-10 17:50 ` Jean-Rene David
2006-02-10 18:03   ` Peter Stephenson
2006-02-11  4:15     ` Justin M Wozniak
2006-02-11  5:20       ` Bart Schaefer [this message]
2006-02-09 19:40 Jean-Rene David

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=1060211052037.ZM5321@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=jwozniak@cse.nd.edu \
    --cc=zsh-users@sunsite.dk \
    /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).