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

Re: Redirecting shell output to a pipe



On Tue, Nov 24, 2009, Peter Miller wrote about "Re: Redirecting shell output to a pipe":
>...
> > Isn't it natural to assume that in the same fashion, you should also
> > be able to redirect the scripts output to a pipe? E.g., a very useful
> > idiom could have been
> >
> > 	exec | tee filename
> 
> exec |& tee filename

Does this work for you? I get (on zsh 4.3.10)

	zsh: redirection with no command

This was exactly my "complaint" - that this is sensible syntax, that
could have worked, but doesn't.


-- 
Nadav Har'El                        |    Wednesday, Nov 25 2009, 8 Kislev 5770
nyh@xxxxxxxxxxxxxxxxxxx             |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |A cat has claws ending its paws. A
http://nadav.harel.org.il           |sentence has a pause ending its clause.



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