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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content