Bug 431964

Summary: colorls.csh: dircolors: extra operand '2' -- can't use 2> in csh scripts
Product: [Fedora] Fedora Reporter: Charles R. Anderson <cra>
Component: coreutilsAssignee: Ondrej Vasik <ovasik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: coreutils-6.10-7.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-14 10:42:07 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Charles R. Anderson 2008-02-07 22:27:27 EST
Description of problem:

/etc/profile.d/colorls.csh has this syntax which is invalid in csh/tcsh:

eval `dircolors -c $COLORS 2>/dev/null`

You can't redirect ONLY stderr in csh/tcsh.  It isn't supported.
Not sure what the intent is here, but you can redirect BOTH stdout/stderr with
>&.  See this for description of the issue and some workarounds:


Version-Release number of selected component (if applicable):
Comment 1 Ondrej Vasik 2008-02-14 10:42:07 EST
Will not redirect anything - this was the way how it works in F8. Done in
coreutils-6.10-7.fc9 , closing RAWHIDE.