From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Redirecting standard output Date: Thu, 21 Apr 2011 08:57:27 +0300 Message-ID: <83pqog2lko.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1303365496 27948 80.91.229.12 (21 Apr 2011 05:58:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 05:58:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 21 07:58:12 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QCmu1-0006w1-Dl for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 07:58:09 +0200 Original-Received: from localhost ([::1]:33224 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCmu0-0005Ih-PC for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 01:58:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCmtw-0005Ia-3a for emacs-devel@gnu.org; Thu, 21 Apr 2011 01:58:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCmtr-0006x8-QK for emacs-devel@gnu.org; Thu, 21 Apr 2011 01:58:04 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:50629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCmtr-0006x3-KF for emacs-devel@gnu.org; Thu, 21 Apr 2011 01:57:59 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LJZ00100N0BJ900@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Thu, 21 Apr 2011 08:57:28 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.129.240]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LJZ000SDN7QQH70@a-mtaout21.012.net.il>; Thu, 21 Apr 2011 08:57:28 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138598 Archived-At: > From: Lars Magne Ingebrigtsen > Date: Wed, 20 Apr 2011 23:19:57 +0200 > > I was trying to play around with the pbmplus programs from Emacs, and > that turns out to be somewhat awkward. The programs all send output to > STDOUT, and there seems to be no way to easily redirect STDOUT with > `call-process'. You mean, redirect to a file? Why do you need that? Anyway, redirecting to a temp buffer and then writing that buffer to a file should be good enough, right? > You can usually work around this by using `shell-command' or the like, > but when dealing with directories that contain arbitrary characters, > getting the quoting right can be somewhat icky. (Although I found > `shell-quote-argument' just now while writing this. :-) So, if you use shell-quote-argument, is there still a problem?