[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"
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
- Re: Redirecting standard output, (continued)
- Re: Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/21
- Re: Redirecting standard output, Eli Zaretskii, 2011/04/22
- Re: Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/23
- Re: Redirecting standard output, Eli Zaretskii, 2011/04/23
- Re: Redirecting standard output, Jan Djärv, 2011/04/24
- Re: Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/30
- Re: Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/30
- Re: Redirecting standard output, Glenn Morris, 2011/04/21
Re: Redirecting standard output, Michael Albinus, 2011/04/21
Re: Redirecting standard output, Eli Zaretskii, 2011/04/21
- Re: Redirecting standard output,
Thierry Volpiatto <=
Re: Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/21