From 92c27287b8964b5587ed3dacd455686e17e6e1f3 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Tue, 22 Jan 2013 11:22:22 -0800 Subject: [PATCH] Ignore COLOR, OPTIONS and EIGHTBIT keywords --- dircolortest | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dircolortest b/dircolortest index f5a2db1..d79d412 100755 --- a/dircolortest +++ b/dircolortest @@ -29,8 +29,9 @@ while ($line = ) { if ($line ne '') { ($type, $format) = split /\s+/, $line; - # Ignore the TERM lines, we don't care about them here - next if ($type eq 'TERM'); + # Ignore the following lines, we don't care about them here + next if (($type eq 'TERM') || ($type eq 'COLOR') || + ($type eq 'OPTIONS') || ($type eq 'EIGHTBIT')); # Just a little enhancement, if the type begins with a . if ($type =~ m/^\./) {