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: Emanuel Berg
Subject: Re: Examining the output of a shell command?
Date: Mon, 29 Jun 2015 03:53:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

"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

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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