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
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: coreutils (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Ondrej Vasik
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  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:
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:


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:

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 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.