zsh-users
 help / color / mirror / code / Atom feed
From: Pavol Juhas <juhas@seas.upenn.edu>
To: ZShell Users <zsh-users@sunsite.dk>
Subject: Re: global alias as function - "--attach"
Date: Wed, 11 Jun 2003 13:44:58 -0400	[thread overview]
Message-ID: <20030611174458.GA28953@seas.upenn.edu> (raw)
In-Reply-To: <20030611131317.GA13170@math.fu-berlin.de>

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


  parent reply	other threads:[~2003-06-11 17:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-11 13:13 Sven Guckes
2003-06-11 15:53 ` DervishD
2003-06-11 16:00 ` Stephen Rueger
2003-06-11 17:44 ` Pavol Juhas [this message]
2003-06-11 20:33 ` Thorsten Haude

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=20030611174458.GA28953@seas.upenn.edu \
    --to=juhas@seas.upenn.edu \
    --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).