zsh-users
 help / color / mirror / code / Atom feed
From: dom@happygiraffe.net (Dominic Mitchell)
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@sunsite.dk
Subject: Re: param expansion flags
Date: Sat, 7 May 2005 11:16:42 +0100	[thread overview]
Message-ID: <20050507101642.GB93660@ppe.happygiraffe.net> (raw)
In-Reply-To: <1050506161109.ZM32261@candle.brasslantern.com>

On Fri, May 06, 2005 at 04:11:09PM +0000, Bart Schaefer wrote:
> On May 6,  1:48pm, Dominic Mitchell wrote:
> } 
> } Can anyone offer me some advice?
> 
> Do it in several steps and worry later (if ever) about compressing
> them down to a single nested parameter expansion.
> 
> arr=( ${(f)"$(rake -sT)"} )
> arr=( ${arr#rake } )
> arr=( ${arr/ *# /\[} )
> arr=( ${^arr}\] )

Thank you very much -- that's an exceedingly sensible idea.  And I
hadn't used ${^foo} before, so that's something good to learn!

Thanks again,
-Dom


  reply	other threads:[~2005-05-07 10:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-06 12:48 Dominic Mitchell
2005-05-06 16:11 ` Bart Schaefer
2005-05-07 10:16   ` Dominic Mitchell [this message]
2005-05-06 16:13 ` Haakon Riiser

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=20050507101642.GB93660@ppe.happygiraffe.net \
    --to=dom@happygiraffe.net \
    --cc=schaefer@brasslantern.com \
    --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).