[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] colors break `env`, any solution?
From: |
Patrick Schleizer |
Subject: |
Re: [Help-bash] colors break `env`, any solution? |
Date: |
Sun, 22 Mar 2015 03:07:15 +0000 |
Eduardo A. Bustamante López:
>> Now, when running 'env' from child scripts, it's totally broken.
> It isn't *broken*. It works exactly as advertised.
>
>> Is there any solution to that?
> foo=$(bar) runs `bar' and assigns its output to the `foo' variable. There's no
> reason for the _command substitution_ (that is, $(bar) ), to be preserved
> after
> that.
>
> It's hard to tell what an appropiate "solution" would be here, since
> everything
> is worked as documented. Perhaps if you explain your goal clearly?
My goal is exporting the colors and still being able to run `env` with
useable output.
Cheers,
Patrick