My Oracle Support Banner

OL7: csh Or tcsh User Logins Return "if: Expression Syntax" After Patching. (Doc ID 2579995.1)

Last updated on SEPTEMBER 12, 2019

Applies to:

Linux OS - Version Oracle Linux 7.2 and later
Information in this document applies to any platform.


After patching an OL7.x machine, for all users whose default shells are set to csh(1) or tcsh(1), they may see a syntax error "if: Expression Syntax" returned during normal logins or su(1) sessions.

In an example, a user called oracle has csh(1) as its default shell:


Running su(1) to change into oracle now returns:

# su - oracle
Last login: Wed Aug 21 10:28:17 EDT 2019 on pts/0
if: Expression Syntax.

This problem also affects cron(8) jobs run by the same user.


Patched this OL7.x machine via "yum update".


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.