View Issue Details

IDProjectCategoryView StatusLast Update
0016369CentOS-7kde-settingspublic2019-08-30 14:18
Reportercatselbow 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version7.6.1810 
Target VersionFixed in Version 
Summary0016369: Syntax error in /etc/profile.d/kde.csh causes an error message at login
DescriptionThe following expression in /etc/profile.d/kde.csh (from kde-settings-19-23.9.el7.centos.noarch) causes an error message at login for tcsh users:

# Fix the user-places.xbel error pop at first user login
if [ ! -d ${HOME}/.local/share -a -w ${HOME} ] then
    mkdir -p ${HOME}/.local/share
endif

The reason is that this expression is using bash-like syntax for the "if" statement, instead of csh syntax. The error message is:

"if: Expression Syntax."

Steps To Reproduce* Log in using tcsh as your login shell.
* Watch for error message at login, or invoke it manually by typing "source /etc/profile.d/kde.csh".
TagsNo tags attached.
abrt_hash
URL

Activities

TrevorH

TrevorH

2019-08-30 14:02

manager   ~0035039

This is a bug inherited from RHEL and needs reporting to them via bugzilla. It comes from the patch in the SRPM here https://git.centos.org/rpms/kde-settings/blob/c7/f/SOURCES/kde-settings-19-23-bz%231404382.patch and was added in response to https://bugzilla.redhat.com/show_bug.cgi?id=1404382
TrevorH

TrevorH

2019-08-30 14:05

manager   ~0035040

I just installed kde-settings and set my shell to /bin/tcsh and do not see any errors on logging in.
TrevorH

TrevorH

2019-08-30 14:07

manager   ~0035041

Ah, this is only in the latest kde-settings in CR...
catselbow

catselbow

2019-08-30 14:08

reporter   ~0035042

For what it's worth, this seems to be what the script was aiming for:

# Fix the user-places.xbel error pop at first user login
if ( ! -d ${HOME}/.local/share && -w ${HOME} ) then
    mkdir -p ${HOME}/.local/share
endif
catselbow

catselbow

2019-08-30 14:15

reporter   ~0035043

It looks like this has already been reported on redhat bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1710925 (see the bottom of the thread.
TrevorH

TrevorH

2019-08-30 14:16

manager   ~0035044

I checked RHEL 7.7 and it has the same bashism in a .csh file so the problem comes from upstream and needs a bugzilla.redhat.com entry. Please let us know the bz id and cross link the bugs both ways so that bz points to us and this points to the bz. Thanks.
toracat

toracat

2019-08-30 14:18

manager   ~0035045

See https://bugzilla.redhat.com/show_bug.cgi?id=1738491

Issue History

Date Modified Username Field Change
2019-08-30 13:48 catselbow New Issue
2019-08-30 14:02 TrevorH Note Added: 0035039
2019-08-30 14:05 TrevorH Note Added: 0035040
2019-08-30 14:07 TrevorH Note Added: 0035041
2019-08-30 14:08 catselbow Note Added: 0035042
2019-08-30 14:15 catselbow Note Added: 0035043
2019-08-30 14:16 TrevorH Note Added: 0035044
2019-08-30 14:18 toracat Note Added: 0035045