From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Raffaele Ricciardi Newsgroups: gmane.emacs.help Subject: Re: Examining the output of a shell command? Date: Sun, 28 Jun 2015 16:31:29 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1435502147 9027 80.91.229.3 (28 Jun 2015 14:35:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Jun 2015 14:35:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 28 16:35:39 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z9DgG-0002Ix-Vr for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 16:35:37 +0200 Original-Received: from localhost ([::1]:39132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9DgG-0006ju-7j for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 10:35:36 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-X-Trace: individual.net qlduyOmWH6O72idJl79txQPyX8BLn/2UUgKz7UTU5C2U3ADPOF Cancel-Lock: sha1:XZBMhCWQFwvOkAF0fMsJkcTPovk= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 In-Reply-To: Original-Xref: usenet.stanford.edu gnu.emacs.help:212961 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105248 Archived-At: 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.