error: invalid character '=' in LSCOLORS env var
samangh opened this issue · 3 comments
samangh commented
Trying to use LS_COLORS in OS X (Note, it's LSCOLORS in OS X, not LS_COLORS).
eval $(dircolors -b ~/.LS_COLORS/LS_COLORS)
export LSCOLORS=$LS_COLORS
But, I get:
$ ls
error: invalid character '=' in LSCOLORS env var
warn: LSCOLORS should use characters a-h instead of 0-9 (see the manual page)
error: invalid character '8' in LSCOLORS env var
error: invalid character ';' in LSCOLORS env var
error: invalid character ';' in LSCOLORS env var
error: invalid character '8' in LSCOLORS env var
error: invalid character ':' in LSCOLORS env var
error: invalid character '=' in LSCOLORS env var
error: invalid character '8' in LSCOLORS env var
error: invalid character ';' in LSCOLORS env var
error: invalid character ';' in LSCOLORS env var
error: invalid character ':' in LSCOLORS env var
Any ideas?
rpdelaney commented
Weird. Works for me in OSX using LS_COLORS
as normal. What's your $SHELL
?
samangh commented
Found the problem, it's with ls
. I switched from the OS X ls
to the latest version of GNU ls
(v8.25), and LS_COLORS now works fine.
I wonder whether there is a difference between how BSD and GNU variants interpret $LS_COLORS
, or if the version shipped in OS X is too old.