ls colors - command substitution - mainly a bash question

Kevin Krumwiede krum at oco.net
Sun Jul 15 20:36:42 PDT 2001


eval $(dircolors /etc/DIR_COLORS)

THANKS!

-----Original Message-----
From: lfs-discuss-owner at linuxfromscratch.org
[mailto:lfs-discuss-owner at linuxfromscratch.org]On Behalf Of J. Jones
Sent: Sunday, July 15, 2001 1:52 PM
To: lfs-discuss at linuxfromscratch.org
Subject: Re: ls colors - command substitution - mainly a bash question


On Sun, Jul 15, 2001 at 12:49:10PM -0400, Kevin Krumwiede wrote:
> # $(echo 'echo foo')
> 
> This prints 'foo'.  But this fails:
> 
> # $(dircolors /etc/DIR_COLORS)
> 
> # FOO='BAR=baz'
> # $FOO
> 
> This obviously works:
> 
> # dircolors /etc/DIR_COLORS > setcolors; source setcolors

eval `dircolors`

-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message


-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message



More information about the lfs-dev mailing list