[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: open file and command substitution of bash
From: |
Davis Herring |
Subject: |
Re: open file and command substitution of bash |
Date: |
Tue, 5 Jan 2010 09:08:24 -0800 (PST) |
User-agent: |
SquirrelMail/1.4.8-5.7.lanl7 |
> R=mktemp; tee < <(ls) >${R} && emacs $R
Isn't that just a complicated way of saying
ls>$x && emacs $x
? Even if your "<(ls)" is just a placeholder for some preexisting pipe
(maybe a FIFO or something), you could just do
cat <(ls) >$x && emacs $x
and lose the extra < before "<(ls)" too, since cat doesn't need it.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.