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

Re: Redirection and Variables



* Peter Stephenson <pws@xxxxxxx> [Oct 19, 2004 16:10]:
> > Well, the script is run like

> > url-extract <mail

> You could pass the file "mail" as an argument to url-extract, then only
> redirect from it internally for the chunk which needs it.  That avoids
> any dependence on /dev/tty.  Remember you can do things like:

>   {
>     # stuff with mail as input
>   } <mail

>   # stuff with normal input

> without having to create subshells.

Yeah, that would be fine, but I can't take the file as an argument.
This script is used from mutt and piping of messages is what you have at
your disposal in that case.
	nikolai

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}



Messages sorted by: Reverse Date, Date, Thread, Author