Rich Healey wrote: > Mike Bird wrote: >> On Mon April 7 2008 16:03:28 Chris Bannister wrote: >>> export GREP_COLOR=33 >>> alias grep='grep --colour=always' >> >> This will break any scripts which assume that the output >> of grep has not been annotated with color escape sequences. >> > Those scripts will not load his .bashrc
The GREP_OPTIONS and GREP_COLOR environment variables created some problems for me a while ago (See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=411931 ) So instead of aliasing grep with color related options, I am currently using if [ ! -z "$PS1" ]; then function colgrep(){ command grep --color=always "$@"; } fi hth raju -- Kamaraju S Kusumanchi http://www.people.cornell.edu/pages/kk288/ http://malayamaarutham.blogspot.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]