Bug 162187 - tcsh -n fails where tcsh succeeds
tcsh -n fails where tcsh succeeds
Product: Fedora
Classification: Fedora
Component: tcsh (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miloslav Trmač
Bill Huang
Depends On:
  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:
Last Closed: 2005-07-07 12:53:59 EDT
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 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!"

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

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.