From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: Redirecting standard output Date: Thu, 21 Apr 2011 08:28:21 +0200 Message-ID: <87ei4wjeyi.fsf@gmail.com> References: <83pqog2lko.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1303367331 4829 80.91.229.12 (21 Apr 2011 06:28:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 06:28:51 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 21 08:28:47 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 1QCnNe-00008v-Q5 for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 08:28:46 +0200 Original-Received: from localhost ([::1]:46949 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCnNe-0000Yp-16 for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 02:28:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCnNZ-0000Yi-OY for emacs-devel@gnu.org; Thu, 21 Apr 2011 02:28:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCnNV-0002tn-6P for emacs-devel@gnu.org; Thu, 21 Apr 2011 02:28:41 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:44501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCnNV-0002tj-0h for emacs-devel@gnu.org; Thu, 21 Apr 2011 02:28:37 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QCnNR-0008T7-HJ for emacs-devel@gnu.org; Thu, 21 Apr 2011 08:28:33 +0200 Original-Received: from 82.77.197-77.rev.gaoland.net ([77.197.77.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Apr 2011 08:28:33 +0200 Original-Received: from thierry.volpiatto by 82.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Apr 2011 08:28:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 82.77.197-77.rev.gaoland.net User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:oiON/N88yoD2KqXxmtiZR2cj14I= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:138600 Archived-At: Eli Zaretskii writes: >> 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? shell-quote-argument is sometime unusable with special characters: (shell-quote-argument "Vidéos") ==> "Vid\\éos" eshell: ls (shell-quote-argument "Vidéos") ==>Vid\éos: No such file or directory -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997