[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: open file and command substitution of bash
From: |
alin.s |
Subject: |
Re: open file and command substitution of bash |
Date: |
Tue, 5 Jan 2010 01:13:50 -0800 (PST) |
The easiest form that I find to open the output is
R=mktemp; tee < <(ls) >${R} && emacs $R
Davis Herring wrote:
>
>> emacs /dev/fd/5
>
> You could just do emacs <(ls) -- bash replaces <(ls) with something like
> /dev/fd/63 anyway.
>
>> However, I suppose that emacs uses pipes for implementing processes... It
>> cannot read its stdin from a pipe and create a buffer with?
>
> Certainly one could (in C) arrange for Emacs to open a file name and treat
> it as if it were a pipe from a process. But Emacs doesn't consider that
> the same operation as visiting a file, which is what is requested when you
> use file names as arguments.
>
> 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.
>
>
>
>
--
View this message in context:
http://old.nabble.com/open-file-and-command-substitution-of-bash-tp27014612p27025578.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.