From: "alin.s" <alinsoar@voila.fr>
To: Emacs-devel@gnu.org
Subject: Re: open file and command substitution of bash
Date: Tue, 5 Jan 2010 01:13:50 -0800 (PST) [thread overview]
Message-ID: <27025578.post@talk.nabble.com> (raw)
In-Reply-To: <33839.130.55.118.19.1262620114.squirrel@webmail.lanl.gov>
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.
next prev parent reply other threads:[~2010-01-05 9:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-04 15:37 open file and command substitution of bash alin.s
2010-01-04 15:48 ` Davis Herring
2010-01-05 9:13 ` alin.s [this message]
2010-01-05 17:08 ` Davis Herring
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=27025578.post@talk.nabble.com \
--to=alinsoar@voila.fr \
--cc=Emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.