Description of problem:
When starting zsh on s390x architecture, following error message apears:
"/etc/profile.d/s390.sh:4: = not found". This is caused by incorrect syntax of equation in /etc/profile.d/s390.sh script
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. start zsh
error message "/etc/profile.d/s390.sh:4: = not found"
no error message
"IF" statment in script:
if [ "$contype" == "serial" ]; then
If a word begins with an unquoted `=' and the EQUALS option is set, the remainder of the word is taken as the name of a command...
Correct syntax is:
if [[ "$contype" == "serial" ]]; then #double bracket
if [ "$contype" = "serial" ]; then #single equal signs
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release. Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products. This request is not yet committed for inclusion in
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.