On Saturday 17 June 2006 13:48, Etaoin Shrdlu wrote:
> Using --color=auto, on the
> other hand, is the correct way to do the "right" thing, ie grep
> itself "knows" whether it should emit escape sequences to colorize the
> output (if it's really outputting to terminal) or not (if, for example,
> it's called from inside a command substitution).

Just to show you the purpose of adding --color=always. Try the following:

# echo hello | grep --color=auto ll | less

# echo hello | grep --color=always ll | less

-- 
Bo Andresen

Attachment: pgpuXDVPZLnZG.pgp
Description: PGP signature

Reply via email to