zsh-users
 help / color / mirror / code / Atom feed
From: J <jean.chalard@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: globbing with interposition
Date: Tue, 19 Apr 2005 17:36:20 +0200	[thread overview]
Message-ID: <fb6be96e050419083636422af8@mail.gmail.com> (raw)
In-Reply-To: <1050419152554.ZM31922@candle.brasslantern.com>

> On Apr 19, 10:22am, J wrote:
> } Subject: Re: globbing with interposition
> }
> } a=(fotos*) mutt eric '-a '${^a} -s "all images attached" </dev/null
> 
> That doesn't work because the order of assignment and expansion is not
> what you expect.  That is, the ${^a} is expanded at parse time, but
> the assignment prefixes are handled at execute time.  You'd have to do

Oh. I was bitten by the fact I tested it after I already give the
value to the array and assumed the variable was reassigned on this
line before evaluation. My bad.
Anyway, I should have been aware of the problems with the spaces in
filenames and the quoted space anyway.

Well, sorry for the noise.

-- 
J
"If you wish to leave a record of your call,
 please state your messij at the sound of the tone."


  reply	other threads:[~2005-04-19 23:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19  7:21 Eric Smith
2005-04-19  7:50 ` DervishD
2005-04-19  8:22 ` J
2005-04-19  8:35   ` DervishD
2005-04-19 15:25   ` Bart Schaefer
2005-04-19 15:36     ` J [this message]
2005-04-19 15:59     ` Peter Stephenson
2005-04-19 16:22       ` Bart Schaefer
2005-04-19 16:46     ` DervishD
2005-04-19 18:36 ` Oliver Kiddle
2005-04-21 10:45   ` globbing with interposition -> rocking Eric Smith - Fruitcom

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=fb6be96e050419083636422af8@mail.gmail.com \
    --to=jean.chalard@gmail.com \
    --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).