http://bugzilla.opensuse.org/show_bug.cgi?id=1044674 Bug ID: 1044674 Summary: Obscure csh bug (in "/etc/csh.cshrc") Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: nwr10cst-oslnx@yahoo.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 Build Identifier: There's a syntax error in "/etc/csh.cshrc". Here's how to reproduce: Assume userA is a user of the system. Assume userB is another user of the system, and userB has "csh" as the login shell. Login first as userA. Then do: su userB (giving the password for userB, as requested). When I do that, I am seeing: --- cut here --- % su support Password: then: then/endif not found. --- cut here --- Apparently the if/then/endif are not properly matched up. The bug is triggered when starting a csh session, but only if the tty is not owned by the user starting the shell. Here's a patch that works around the problem: --- cut here --- --- csh.cshrc.orig 2017-05-12 09:22:06.000000000 -0500 +++ csh.cshrc 2017-06-16 04:52:17.444631701 -0500 @@ -126,7 +126,7 @@ set _tsl=`tput tsl || tput -T $TERM+sl tsl` >& /dev/null set _isl='' set _fsl=`tput fsl || tput -T $TERM+sl fsl` >& /dev/null - fi + endif endif set _sc=`tput sc` >& /dev/null set _rc=`tput rc` >& /dev/null --- cut here --- It seems that some Bourne shell syntax crept in "fi" where there should be "endif" I haven't tested that patch very thoroughly, because that section of "csh.cshrc" is a bit complex. I'm guessing that this bug crept in at the same time as bug 1042571 (i.e. with snapshot 20160602). But that's purely a guess. I did not notice it until yesterday, because the circumstances to trigger the bug are uncommon for me. Reproducible: Always -- You are receiving this mail because: You are on the CC list for the bug.