Red Hat Bugzilla – Bug 1027279
colorls.csh errors out if "noclobber" is set
Last modified: 2016-01-04 09:41:28 EST
Version: coreutils 8.21.11
The setup script /etc/profile.d/colorls.csh works fine in a stock F19
installation, but if a local admin adds a default shell setting of
"noclobber" in a profile setting that runs before this script (as we do)
then the script will error out with an error of:
/tmp/.colorlsXXX: File exists.
The script creates that temporary file with mktemp, but on the first
write it uses only a single redirect (>), which fails when noclobber is set.
Since the file is already created, I think we can safely use an append
redirect (>>) in all cases where that file is written to, which works
regardless of the state of the noclobber settting.
< if ( "$INCLUDE" != '' ) cat "$INCLUDE" > $TMP
> if ( "$INCLUDE" != '' ) cat "$INCLUDE" >> $TMP
I should have said the above is all on behalf of Ty Boyack <firstname.lastname@example.org> from: http://bugs.gnu.org/15819
Rawhide commit https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20131104/1140247.html ...
I'll keep it opened until fixed in next cumulative update for F19.
coreutils-8.21-13.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing coreutils-8.21-13.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
coreutils-8.21-13.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
coreutils-8.21-21.fc20 has been submitted as an update for Fedora 20.
coreutils-8.21-21.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.