Bug 612284 - /etc/sysconfig/network-scripts/ifup-ib: line 79: [: too many arguments
/etc/sysconfig/network-scripts/ifup-ib: line 79: [: too many arguments
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rdma (Show other bugs)
6.0
All Linux
low Severity medium
: rc
: ---
Assigned To: Doug Ledford
Gurhan Ozen
:
: 602941 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-07 14:49 EDT by Gurhan Ozen
Modified: 2013-11-03 21:00 EST (History)
4 users (show)

See Also:
Fixed In Version: rdma-1.0-8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-11-10 16:28:22 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Gurhan Ozen 2010-07-07 14:49:21 EDT
Description of problem:
# cat /etc/sysconfig/network-scripts/ifcfg-ib0 
DEVICE=ib0
TYPE=Infiniband
BOOTPROTO=static
BROADCAST=192.0.0.255
IPADDR=192.0.1.7
NETMASK=255.255.255.0
NETWORK=192.0.0.0
ONBOOT=yes
# ifup ib0
/etc/sysconfig/network-scripts/ifup-ib: line 79: [: too many arguments


Version-Release number of selected component (if applicable):
rdma-1.0-7.el6.noarch

How reproducible:
Everytime.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Doug Ledford 2010-07-09 13:24:53 EDT
Simple fix: use quoting for arguments or nest tests and only test if variable exists.  Either way, it's not hard to fix and should be done prior to GA.
Comment 3 Doug Ledford 2010-08-02 10:21:23 EDT
*** Bug 602941 has been marked as a duplicate of this bug. ***
Comment 4 Doug Ledford 2010-08-03 02:52:06 EDT
Changes made, will be tested tomorrow and checked in after successful tests.
Comment 6 Justin Clift 2010-08-10 02:28:04 EDT
As a data point, this looks good here.  rdma-1.0-8-el6 (recompiled for F13) solves the problem for my F13 desktop.
Comment 7 releng-rhel@redhat.com 2010-11-10 16:28:22 EST
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

Note You need to log in before you can comment on or make changes to this bug.