Red Hat Bugzilla – Bug 1259751
ksh syntax error from /etc/profile.d/scl-init.sh
Last modified: 2017-03-20 06:26:44 EDT
Description of problem:
I modified /etc/profile to tell me which profile.d script it was running
so I could see which one caused a syntax error:
Running profile for /etc/profile.d/scl-init.sh
/etc/profile: .: syntax error: `(' unexpected
The user that gets this error has his shell set to /bin/ksh which comes
from the ksh-20120801-24.fc22.x86_64 package.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.log in as user that has /bin/ksh shell
2.see syntax error message
I have no idea why scl-utils is installed (or what it does, since the web page referenced in the rpm info is way to cryptic to understand), but nothing seemed to depend on it so I solved the problem with "dnf erase scl-utils". I just figured I should record this bug in case anyone cared.
This should be fixed in upstream: https://github.com/sclorg/scl-utils/commit/c0f59882fddfd57439d773e74377e89acc826150 and I will push this into fedora too.
Basically scl-utils is a tool for using Software Collections and Software Collections is technology that makes possible to build and concurrently install multiple versions of the same RPM packages on a system.
The problem with the script is that it is "bash" specific.
bash uses the format
while in ksh it is simply
I suppose the it would be wise for the script to execute differently based on the calling shell.
This is still busted in fedora 23, so apparently the upstream fix never got pushed (or wasn't really a fix :-).
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.
There was no release after this issue was reported, that would seem to fix this, so re-opening to check whether it was properly fixed or not. My suspicion is it was not.
Can confirm that I see this problem in Fedora25. RPM reports scl-utils-2.0.1-10.fc25.x86_64
Fixed upstream but pending Fedora fix -> moving to POST