Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: global alias as function - "--attach"



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