Am 02.08.2010 23:13, schrieb Will Fiveash:
On Mon, Aug 02, 2010 at 03:49:47PM -0500, Nicolas Williams wrote:
On Sun, Aug 01, 2010 at 10:52:01PM -0500, David Champion wrote:
Syntax has been changed: -a indicates a *list* of attachment files
ending with "--". I don't recall which version was first to boast this
new syntax, but it's the problem you're seeing right now even if it's
not related to the problem you saw earlier.
Try:
mutt -s test -a Bild.jpg -- [email protected]<body.txt
I recommend against this use of '--'. It makes it harder to write
wrapper scripts that parse the same arguments using getopt/ getopts, for
example. Sadly, I don't have a counter-proposal, nor am I suggesting
this get ripped out now.
On the other hand it makes:
mutt -a * -- [email protected]
easier which I would guess is why the change was made. You do have a
point about -- being potentially problematic. Maybe -a should work like
it used to (only one file per -a instance) and a new flag could take a
list of files to attach from a file given as a arg (or stdin).
-- has special meaning in some unix command lines to provide an escape
when names starting with a "-"-sign
are concerned. (doesn't getopt use it as an escape anyway? not sure).
mkdir -- -foo
rmdir -- -foo
How about
mutt -a * \; [email protected]
?
--
Christoph