zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Eric Smith <es@fruitcom.com>
Cc: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: globbing with interposition
Date: Tue, 19 Apr 2005 20:36:28 +0200	[thread overview]
Message-ID: <11234.1113935788@trentino.groupinfra.com> (raw)
In-Reply-To: <20050419072115.GA15936@fruitcom.com>

Eric Smith wrote:
> I want to be able in a simple command to glob all files
> but there needs to be a `-a' in front of each globbed file name.
> 
> So, I would like to do something like this (which obviously
> dont work) in order to achieve the above.
> 
> mutt eric -a fotos* -s "all images attached" </dev/null
> 

The following works:

  files=( fotos* )
  mutt eric {-a,$^files} -s "all images attached" </dev/null

That may seem strange but I suppose the array must be expanded before
the braces.

Oliver


  parent 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
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 [this message]
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=11234.1113935788@trentino.groupinfra.com \
    --to=okiddle@yahoo.co.uk \
    --cc=es@fruitcom.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).