[coreutils] Fix minor issue in colorls.csh script with noclobber on (reported by Ty! Boyack)

Ondrej Vasik ovasik at fedoraproject.org
Wed Nov 6 13:24:39 UTC 2013


commit bf6c8ea7527bd104c9d2f0a3fd02fe36f0781be7
Author: Ondřej Vašík <ovasik at redhat.com>
Date:   Wed Nov 6 14:24:54 2013 +0100

    Fix minor issue in colorls.csh script with noclobber on (reported by Ty! Boyack)

 coreutils-colorls.csh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/coreutils-colorls.csh b/coreutils-colorls.csh
index d02fe85..f2138a9 100755
--- a/coreutils-colorls.csh
+++ b/coreutils-colorls.csh
@@ -33,7 +33,7 @@ if ( ! -e "$COLORS" ) exit
 
 set _tmp="`mktemp .colorlsXXX --tmpdir=/tmp`"
 
-if ( "$INCLUDE" != '' ) cat "$INCLUDE" > $_tmp
+if ( "$INCLUDE" != '' ) cat "$INCLUDE" >> $_tmp
 grep -v '^INCLUDE' "$COLORS" >> $_tmp
 
 eval "`dircolors -c $_tmp`"


More information about the scm-commits mailing list