Bug 1739688

Summary: updates to kde.csh break csh and tcsh logins with if: Expression Syntax error
Product: Red Hat Enterprise Linux 7 Reporter: Adam Carlson <carlson.adam.web>
Component: kde-settingsAssignee: Jan Grulich <jgrulich>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.8   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-10 10:04:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Carlson 2019-08-09 18:48:55 UTC
Description of problem:
Update from kde-settings-19-23.9 changes syntax of /etc/profile.d/kde.csh which breaks logins for csh and tcsh users. Diff output shown below 

$ diff /etc/profile.d/kde.csh.19-23.8 /etc/profile.d/kde.csh.19-23.9
25c25
< if ( ! -d ${HOME}/.local/share ) then
---
> if [ ! -d ${HOME}/.local/share -a -w ${HOME} ] then


Version-Release number of selected component (if applicable):
kde-settings-19-23.9

How reproducible:
Everytime

Steps to Reproduce:
1. Upgrade kde-settings to version 19-23.9

Actual results:
On login to a system, csh and tcsh users see the error "if: Expression Syntax." which breaks setup of their environment.


Expected results:
Error does not occur and user environment is successfully setup


Additional info:

Comment 2 Adam Carlson 2019-08-09 18:54:38 UTC
Problem syntax from the 19-23.9 updated kde.csh file is on line 25:
if [ ! -d ${HOME}/.local/share -a -w ${HOME} ] then


Correct syntax for the update should be:
if ( ! -d ${HOME}/.local/share && -w ${HOME} ) then

Comment 3 Jan Grulich 2019-08-10 10:04:39 UTC

*** This bug has been marked as a duplicate of bug 1738491 ***