Trailing space is required in set prompt line of /etc/csh.cshrc

Solution Verified - Updated -

Issue

"then: then/endif not found" error outputs when csh -c command is executed.

$ sudo -i -u testuser csh -c 'pwd'
then: then/endif not found.
then: then/endif not found.
/home/testuser

Environment

  • Red Hat Enterprise Linux all
  • tcsh/csh

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