Trailing space is required in set prompt line of /etc/csh.cshrc
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.