From: DervishD <zsh@dervishd.net>
To: Eric Smith <es@fruitcom.com>
Cc: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: globbing with interposition
Date: Tue, 19 Apr 2005 09:50:58 +0200 [thread overview]
Message-ID: <20050419075058.GA57@DervishD> (raw)
In-Reply-To: <20050419072115.GA15936@fruitcom.com>
Hi Eric :)
* Eric Smith <es@fruitcom.com> dixit:
> 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
Quick'n'dirty hack (obviously must exist a better solution):
mutt eric `for file in * ; print -- -a $file' -s ...
The main problem is that this doesn't work with files that has
spaces in the name. If mutt doesn't need a space between '-a' and the
file name for the attach, you can do this:
mutt eric "`for file in * ; print -- -a $file'" -s ...
This quotes the space between the '-a' and the filename. I don't
know of any other solution that you can use in the command line. If
you need selective quoting you can 'build' the command line:
commandline=(mutt eric)
for file in *
do
commandline+=(-a "$file")
done
commandline+=(-s "all...")
After that, you run this:
$ $commandline </dev/null
Hope that helps :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.dervishd.net & http://www.pleyades.net/
It's my PC and I'll cry if I want to...
next prev parent reply other threads:[~2005-04-19 7:50 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 [this message]
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
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=20050419075058.GA57@DervishD \
--to=zsh@dervishd.net \
--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).