Bug 162187 - tcsh -n fails where tcsh succeeds
tcsh -n fails where tcsh succeeds
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: tcsh (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miloslav Trmač
Bill Huang
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-30 13:53 EDT by Bill Nottingham
Modified: 2014-09-08 06:17 EDT (History)
1 user (show)

See Also:
Fixed In Version: 6.14-3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-07 12:53:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Bill Nottingham 2005-06-30 13:53:38 EDT
Description of problem:

In bash:

for foo in /etc/profile.d/*.csh ; do
   tcsh -n $foo || echo "$foo failed!"
done

This reports errors on scripts that run with tcsh fine.

Makes writing test scripts hard. :/
Comment 1 Miloslav Trmač 2005-07-04 09:30:59 EDT
It's even worse:

  $ tcsh -f -n
  > echo foo
  > /bin/echo foo
  foo

It seems this was broken already in BSD Net/2 csh (only 14 years ago /-: )
Comment 2 Miloslav Trmač 2005-07-07 12:53:59 EDT
Fixed in tcsh-6.14-3. It won't catch much, but at least there should
be no such obvious false positives.

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