help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Examining the output of a shell command?


From: Raffaele Ricciardi
Subject: Re: Examining the output of a shell command?
Date: Sun, 28 Jun 2015 16:31:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1

On 28/06/15 15:57, Pascal J. Bourguignon wrote:
(shell-command-to-string "echo $RED hello $NORMAL")
--> "[31m hello [0m
"

Here is:

(shell-command-to-string "echo $RED hello $NORMAL")
--> "hello
"

Tried with GNU Emacs 24.5.1:
 - `emacs -Q` (started from a shell where $RED and $NORMAL are defined)
 - M-: (shell-command-to-string "echo $RED hello $NORMAL") RET

Tried with `emacs -nw -Q`, too, in case was a GUI problem.




reply via email to

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