Hello. Justin Randall wrote: > my question for you is how do you set up the LS_COLORS variable > on a windows machine? I've tried using the dircolors utility > to set the environment variable but that seems to have no affect.
dircolors doesn't actually set the environment variables. It prints out commands you should run, to set the environment variables. Unfortunately it does not output commands that will work on Windows. This is what dircolors outputs on my Linux box: iolanthe:~ =] dircolors LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:'; export LS_COLORS The set command in a Command Prompt on Windows would be: set LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:" Unfortunately when I run this under Windows '98 SE's Command Prompt (MS-DOS 7.1), I get a syntax error. It seems any value with an equals in fails. E.g.: C:\WINDOWS>set FOO="5=4" Syntax error Does this work on Windows 2000? If you don't want to type in SET LS_COLORS="..." in each Command Prompt windows, then you can add it to the default environment. I can't remember exactly where this in Windows 2000. I think it's in the same place on Windows NT. I think if you go into Control Panel -> System there is a tab for environment variables or per-user settings with a section on environment variables. If you're Administrator, you can add this variable to everyone's environment. If you're logged in as a normal user, you can only add it for that user. [snip] > Is it possible for me to obtain the source code for just the ls win32 > binary and not all of the fileutils source? [snip] Not that I know of. Regards, -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ] _______________________________________________ Bug-fileutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-fileutils