Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: global alias as function - "--attach"
- X-seq: zsh-users 6162
- From: Pavol Juhas <juhas@xxxxxxxxxxxxxx>
- To: ZShell Users <zsh-users@xxxxxxxxxx>
- Subject: Re: global alias as function - "--attach"
- Date: Wed, 11 Jun 2003 13:44:58 -0400
- In-reply-to: <20030611131317.GA13170@xxxxxxxxxxxxxxxxx>
- Mail-followup-to: ZShell Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030611131317.GA13170@xxxxxxxxxxxxxxxxx>
On Wed, Jun 11, 2003 at 03:13:17PM +0200, Sven Guckes wrote:
> can i use a global alias as a function within a command?
>
> the real problem:
> someone asked (yet again) whether mutt (the mailer)
> can attach a list of files or a directory of files.
> this is not possible yet - mutt can only attach files given
> on the command line when *every* file is preceded by "-a".
>
> suggestion:
> a patch might get this to work (as usual).
> however, i can imagine something like this:
>
> mutt --attach file dir/ -xyz
>
> here, the "--attach" would be a global alias
> which test the following parameters for
> files and files within directories.
Instead of using alias, you could write a wrapper script (or
shell function) for mutt, which would handle the --attach option
and call the normal /usr/bin/mutt.
Pavol
Messages sorted by:
Reverse Date,
Date,
Thread,
Author