Share

xCAT

Tracker: Bugs

5 rcons command using simplistic syntax - ID: 2845137
Last Update: Settings changed ( sf-robot )

When I run the 'rcons' command with no argument I get two shell syntax
errors because the missing quotes in if statements:
root@bg-adm:~ # rcons
/opt/xcat/bin/rcons: line 2: [: =: unary operator expected
/opt/xcat/bin/rcons: line 9: [: =: unary operator expected
I'm runnng the latest 'stable' build: xCAT-client-2.2.1-snap200905282320

The rcons command should be changed and the arguments to the if commands
properly quoted:
Old:
root@bg-adm:~ # head /opt/xcat/bin/rcons
#!/bin/sh
if [ $1 = -h ]; then
Fixed:
root@bg-adm:~ # head /opt/xcat/bin/rcons
#!/bin/sh
if [ "$1" = -h ]; then


Markus Baertschi ( markus_b ) - 2009-08-26 19:25

5

Closed

Fixed

Bruce

General

v2.2

Public


Comments ( 2 )

Date: 2009-09-16 02:20
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2009-09-01 15:57
Sender: bp-sawyersProject Admin

Fixed in xCAT 2.3 in svn commit 4067. A snap build containing this fix
will be available in a couple of days.


Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
status_id Pending 2009-09-16 02:20 sf-robot
allow_comments 1 2009-09-16 02:20 sf-robot
close_date 2009-09-01 15:57 2009-09-16 02:20 sf-robot
status_id Open 2009-09-01 15:57 bp-sawyers
resolution_id None 2009-09-01 15:57 bp-sawyers
close_date - 2009-09-01 15:57 bp-sawyers