[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.
Message not available
- Re: Examining the output of a shell command?,
Raffaele Ricciardi <=
Re: Examining the output of a shell command?, Pascal J. Bourguignon, 2015/06/28
Re: Examining the output of a shell command?, Emanuel Berg, 2015/06/28
Message not availableRe: Examining the output of a shell command?, Pascal J. Bourguignon, 2015/06/29
Message not available