help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] colors break `env`, any solution?


From: Patrick Schleizer
Subject: [Help-bash] colors break `env`, any solution?
Date: Sat, 21 Mar 2015 18:12:17 +0000

Hi!

>From http://mywiki.wooledge.org/BashFAQ/037 from...

> The following is a more extensive range of terminal sequence
variables. Pick the ones you want:

I picked

    red=$(      tput setaf 1|| tput AF 1    )

and the rest.

And I took the liberty to add "export" in front.

    export red=$(      tput setaf 1|| tput AF 1    )

So this easy, simple and nice access to colors in child scripts is
available as well.

Now, when running 'env' from child scripts, it's totally broken. It
doesn't show '$(      tput setaf 1|| tput AF 1    )', but the literal
colors.

Is there any solution to that?

Cheers,
Patrick



reply via email to

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