The tcsh $status (or $?) variable is incorrect with tcsh-6.17

Solution Verified - Updated -

Issue

  • Why did the $? or $status value inside a backquote command change from tcsh-6.14 to tcsh-6.17 ?
tcsh-6.14$ echo `/bin/false ; echo $?`
1
tcsh-6.17$ echo `/bin/false ; echo $?`
0

Environment

  • RHEL 5.x with tcsh617-6.17-5.el5
  • RHEL 6.x with tcsh-6.17-14.el6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.