From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "alin.s" Newsgroups: gmane.emacs.devel Subject: Re: open file and command substitution of bash Date: Tue, 5 Jan 2010 01:13:50 -0800 (PST) Message-ID: <27025578.post@talk.nabble.com> References: <27014612.post@talk.nabble.com> <33839.130.55.118.19.1262620114.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1262682852 27663 80.91.229.12 (5 Jan 2010 09:14:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2010 09:14:12 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 05 10:14:04 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from terminus-est.gnu.org ([66.92.78.210] helo=lists.gnu.org) by lo.gmane.org with esmtp (Exim 4.50) id 1NS5UJ-000371-TC for ged-emacs-devel@m.gmane.org; Tue, 05 Jan 2010 10:14:04 +0100 Original-Received: from localhost ([127.0.0.1]:44162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NS5UJ-0007Uh-My for ged-emacs-devel@m.gmane.org; Tue, 05 Jan 2010 04:14:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NS5UD-0007Sk-38 for emacs-devel@gnu.org; Tue, 05 Jan 2010 04:13:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NS5U8-0007Mh-LC for Emacs-devel@gnu.org; Tue, 05 Jan 2010 04:13:56 -0500 Original-Received: from [199.232.76.173] (port=55255 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NS5U8-0007ME-De for Emacs-devel@gnu.org; Tue, 05 Jan 2010 04:13:52 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]:55969) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NS5U7-0007XK-VO for Emacs-devel@gnu.org; Tue, 05 Jan 2010 04:13:52 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NS5U6-0005cB-88 for Emacs-devel@gnu.org; Tue, 05 Jan 2010 01:13:50 -0800 In-Reply-To: <33839.130.55.118.19.1262620114.squirrel@webmail.lanl.gov> X-Nabble-From: alinsoar@voila.fr X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119419 Archived-At: 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.