change the TMP variable name in colorls.csh to _tmp (#981373)

This commit is contained in:
Ondrej Oprala 2013-07-17 14:30:46 +02:00
parent 1ad7b8db0f
commit e8fe3e1cf6
2 changed files with 10 additions and 6 deletions

View File

@ -31,14 +31,14 @@ set INCLUDE="`cat "$COLORS" | grep '^INCLUDE' | cut -d ' ' -f2-`"
if ( ! -e "$COLORS" ) exit
set TMP="`mktemp .colorlsXXX --tmpdir=/tmp`"
set _tmp="`mktemp .colorlsXXX --tmpdir=/tmp`"
if ( "$INCLUDE" != '' ) cat "$INCLUDE" > $TMP
grep -v '^INCLUDE' "$COLORS" >> $TMP
if ( "$INCLUDE" != '' ) cat "$INCLUDE" > $_tmp
grep -v '^INCLUDE' "$COLORS" >> $_tmp
eval "`dircolors -c $TMP`"
eval "`dircolors -c $_tmp`"
rm -f $TMP
rm -f $_tmp
if ( "$LS_COLORS" == '' ) exit
set color_none=`sed -n '/^COLOR.*none/Ip' < $COLORS`
@ -47,6 +47,7 @@ if ( "$color_none" != '' ) then
exit
endif
unset color_none
unset _tmp
finish:
alias ll 'ls -l --color=auto'

View File

@ -1,7 +1,7 @@
Summary: A set of basic GNU tools commonly used in shell scripts
Name: coreutils
Version: 8.21
Release: 14%{?dist}
Release: 15%{?dist}
License: GPLv3+
Group: System Environment/Base
Url: http://www.gnu.org/software/coreutils/
@ -375,6 +375,9 @@ fi
%{_sbindir}/chroot
%changelog
* Wed Jul 17 2013 Ondrej Oprala <ooprala@redhat.com> 8.21-15
- change the TMP variable name in colorls.csh to _tmp (#981373)
* Fri May 17 2013 Ondrej Vasik <ovasik@redhat.com 8.21-14
- revert the last change