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   
Whiteboard:
Fixed In Version: coreutils-6.10-7.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-14 15:42:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Charles R. Anderson 2008-02-08 03:27:27 UTC
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:

http://faqs.org/faqs/unix-faq/shell/csh-whynot/

Version-Release number of selected component (if applicable):
6.10-5.fc9

Comment 1 Ondrej Vasik 2008-02-14 15:42:07 UTC
Will not redirect anything - this was the way how it works in F8. Done in
coreutils-6.10-7.fc9 , closing RAWHIDE.