[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Examining the output of a shell command?
From: |
Eli Zaretskii |
Subject: |
Re: Examining the output of a shell command? |
Date: |
Sun, 28 Jun 2015 18:43:04 +0300 |
> From: Raffaele Ricciardi <rfflrccrd@gmail.com>
> Date: Sun, 28 Jun 2015 17:03:52 +0200
>
> 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
Did you "export RED"?
Anyway, what I wanted to point out was that when you invoke the shell
from Emacs, it is a non-interactive session, which might get different
settings.
Message not available
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