Bug 1337691

Summary: malformed tcsh shell profile file causes tcsh to 'set: Variable name must begin with a letter.'
Product: [Fedora] Fedora Reporter: RenĂ© Genz <liebundartig>
Component: allianceAssignee: Ralf Corsepius <rc040203>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: chitlesh, djames44, i, rc040203, thibault.north
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: alliance-5.1.1-6.20160506gitd8c05cd.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-24 18:04:57 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 René Genz 2016-05-19 20:07:26 UTC
Description of problem:
After installation of tcsh and alliance a malformed shell profile file causes tcsh to throw an error message and drop further interpretation of other shell profile files.

Version-Release number of selected component (if applicable):
$ rpm -q alliance
alliance-5.1.1-4.20160220git10a7b7e.fc24.x86_64

How reproducible:
100%

Steps to Reproduce:
1. sudo dnf install -y tcsh
2. tcsh # no error message
3. exit
4. sudo dnf install -y alliance
5. tcsh # error message

Actual results:
$ tcsh
set: Variable name must begin with a letter.
$

Expected results:
no error message

Additional info:
The lines causing the issue:
set  SYSCONF_TOP            "/etc/alliance"
set  CELLS_TOP              "/usr/share/alliance/cells"

are from file:
/etc/profile.d/alc_env.csh

Fix either with:
setenv  SYSCONF_TOP            "/etc/alliance"
setenv  CELLS_TOP              "/usr/share/alliance/cells"

or with:
set SYSCONF_TOP="/etc/alliance"
set CELLS_TOP="/usr/share/alliance/cells"

I would go with setenv.

Comment 1 Ralf Corsepius 2016-05-20 04:53:31 UTC
Thanks for the report. I'll go with setenv.

Comment 2 Fedora Update System 2016-05-20 12:06:18 UTC
alliance-5.1.1-6.20160506gitd8c05cd.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-21c78f7d47

Comment 3 Fedora Update System 2016-05-21 01:31:13 UTC
alliance-5.1.1-6.20160506gitd8c05cd.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-21c78f7d47

Comment 4 Fedora Update System 2016-05-24 18:04:54 UTC
alliance-5.1.1-6.20160506gitd8c05cd.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 djj 2016-08-05 02:21:15 UTC
Fedora 24: tcsh "set: Variable name must begin with a letter."

with alliance and tcsh flavours


alliance-5.1.1-6.20160506gitd8c05cd.fc24.x86_64
tcsh-6.19.00-10.fc24.x86_64

I'm still getting this "set: Variable ...." error for a tcsh xterm.

and my /etc/profile.d/alc_anv.csh file has the lines 

# Where the Alliance CAD is installed
 setenv ALLIANCE_TOP         "/usr/lib64/alliance"
 setenv SYSCONF_TOP          "/etc/alliance"
 setenv CELLS_TOP            "/usr/share/alliance/cells"


.... and ideas ?

Dr. David James
Cerro Tololo InterAmerican Observatory
djames44

Comment 6 Ralf Corsepius 2016-08-05 06:51:34 UTC
(In reply to djj from comment #5)
> # Where the Alliance CAD is installed
>  setenv ALLIANCE_TOP         "/usr/lib64/alliance"
>  setenv SYSCONF_TOP          "/etc/alliance"
>  setenv CELLS_TOP            "/usr/share/alliance/cells"
This is what they are supposed to be.

> .... and ideas ?
Unfortunately no. I can't reproduce your issue, either.

Do you have any other potentially conflicting local profiles around 
rsp. is your /etc/profiles.d/alc_env.csh modified?