SOURCES: fileutils.sh - Backward compatibility

adgor adgor at pld-linux.org
Mon Oct 2 00:56:45 CEST 2006


Author: adgor                        Date: Sun Oct  1 22:56:45 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- Backward compatibility

---- Files affected:
SOURCES:
   fileutils.sh (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/fileutils.sh
diff -u SOURCES/fileutils.sh:1.4 SOURCES/fileutils.sh:1.5
--- SOURCES/fileutils.sh:1.4	Sun Oct  1 23:41:47 2006
+++ SOURCES/fileutils.sh	Mon Oct  2 00:56:39 2006
@@ -6,6 +6,9 @@
 
 [ -r $USER_RC_FILE ] && COLOR_MODE=`grep ^COLOR $USER_RC_FILE |head -n 1|cut -c 7-`
 
+# 'all' argument for 'ls --color=' is no longer valid
+[ "$COLOR_MODE" = all ] && COLOR_MODE=always
+
 [ -z "$COLOR_MODE" ] && COLOR_MODE=$DEF_COLOR_MODE
 
 alias ls="ls --color=$COLOR_MODE"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/fileutils.sh?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list