[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Examining the output of a shell command?
From: |
Pascal J. Bourguignon |
Subject: |
Re: Examining the output of a shell command? |
Date: |
Mon, 29 Jun 2015 10:13:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Emanuel Berg <embe8573@student.uu.se> writes:
> "Pascal J. Bourguignon" <pjb@informatimago.com>
> writes:
>
>> Of course, you need to define RED and NORMAL in your
>> .bashrc!
>
> Try this:
>
> $ export NORMAL="[0m"
> $ emacs -Q --batch --eval '(message (shell-command-to-string "echo
> $NORMAL"))'
>
> [0m
Well you need to insert an escape:
export NORMAL="[0m"
Type C-q ESC in emacs, or C-v ESC in the terminal, before [0m.
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk
- Re: Examining the output of a shell command?, (continued)
Message not available
- Re: Examining the output of a shell command?, Raffaele Ricciardi, 2015/06/28
- Re: Examining the output of a shell command?, Eli Zaretskii, 2015/06/28
- Message not available
- Re: Examining the output of a shell command?, Raffaele Ricciardi, 2015/06/28
- Re: Examining the output of a shell command?, Eli Zaretskii, 2015/06/28
- Message not available
- Re: Examining the output of a shell command?, Raffaele Ricciardi, 2015/06/28
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 <=
Message not available