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 17:03:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1

On 28/06/15 16:55, Eli Zaretskii wrote:
(shell-command-to-string "echo $RED hello $NORMAL")
--> "hello
"

Check your shell init files.

I did that already:

   $ echo $RED
   \[\e[1;31m

Another puzzling behaviour:

   $ echo $RED
   \[\e[1;31m
   $ emacs -nw -Q
   M-: (getenv "RED") RET
   --> nil

What's up?  I am using Bash 4.3.30.



reply via email to

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