Bug 431964 - colorls.csh: dircolors: extra operand '2' -- can't use 2> in csh scripts
colorls.csh: dircolors: extra operand '2' -- can't use 2> in csh scripts
Product: Fedora
Classification: Fedora
Component: coreutils (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Ondrej Vasik
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-02-07 22:27 EST by Charles R. Anderson
Modified: 2008-02-14 10:42 EST (History)
1 user (show)

See Also:
Fixed In Version: coreutils-6.10-7.fc9
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-02-14 10:42:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
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.

Note You need to log in before you can comment on or make changes to this bug.