Bug 162187

Summary: tcsh -n fails where tcsh succeeds
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: tcshAssignee: Miloslav Trmač <mitr>
Status: CLOSED RAWHIDE QA Contact: Bill Huang <bhuang>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 6.14-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-07 16:53:59 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 Bill Nottingham 2005-06-30 17:53:38 UTC
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 13:30:59 UTC
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 16:53:59 UTC
Fixed in tcsh-6.14-3. It won't catch much, but at least there should
be no such obvious false positives.