After update to RHEL 7.7, login as user with csh tcsh shell gives the error "if: Expression Syntax"

Solution Verified - Updated -


  • After updating to kernel version 3.10.0-1062.el7.x86_64 the shell prompt has changed from name@host: /full/path to [name@host current_directory]$.
  • When I log in as a user whose default shell is csh or tcsh, I get a syntax error.
  • csh and tcsh users' .cshrc or .tcshrc files are not parsed when the users logs in after updating to RHEL 7.7.


  • Red Hat Enterprise Linux 7.7

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