Craig Kattner wrote:
> Hmmmm. Well, I had alias dir="ls -F --color=yes" in my /etc/bashrc and
> for example piping things to less printed the color codes but not to
> more. So, I just tried it out with --color and with --color=tty and
> got the same results. Probably more a less issue then a ls thing, but
> it is identical behavior regardless.
I think it worked with more because more simply prints whatever it gets
(cat binary_file | more == bad). less tries to be smarter, but this
means no pretty color codes. I used to have an alias with 'color=yes'
(no wonder my 'ls' pipes never seemed to work right). I just switched to
'color=tty' and it works much better now. Be sure you didn't miss a
detail when you tried with color=tty, cause it's much nicer.
Regards,
Brandt
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.