Bug 851096

Summary: s390.sh - incorrect syntax of equation
Product: Red Hat Enterprise Linux 5 Reporter: Branislav Náter <bnater>
Component: s390utilsAssignee: Dan Horák <dhorak>
Status: CLOSED ERRATA QA Contact: Tomas Dolezal <todoleza>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8CC: azelinka, pknirsch, todoleza
Target Milestone: rc   
Target Release: ---   
Hardware: s390   
OS: Unspecified   
Whiteboard:
Fixed In Version: s390utils-1.8.1-18.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-30 23:19:10 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 Branislav Náter 2012-08-23 08:55:59 UTC
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):
s390utils-1.8.1-17.el5

How reproducible:
always

Steps to Reproduce:
1. start zsh
  
Actual results:
error message "/etc/profile.d/s390.sh:4: = not found"

Expected results:
no error message

Additional info:
"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

OR

if [ "$contype" = "serial" ]; then #single equal signs

Comment 1 RHEL Program Management 2013-04-04 12:37:29 UTC
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
a release.

Comment 6 errata-xmlrpc 2013-09-30 23:19:10 UTC
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.

http://rhn.redhat.com/errata/RHBA-2013-1335.html