[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Redirecting standard output

From: Thierry Volpiatto
Subject: Re: Redirecting standard output
Date: Thu, 21 Apr 2011 08:28:21 +0200
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Lars Magne Ingebrigtsen <address@hidden>
>> 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"

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 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]