Bug 791009

Summary: in Server, Agent, and CLI launch scripts, use the -z and -n options to the 'test' builtin command to check if variable have non-zero values or not
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: Launch ScriptsAssignee: Charles Crouch <ccrouch>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2CC: ccrouch, hbrock, hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-04 03:49:29 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description Ian Springer 2012-02-15 17:27:49 EST
For example:

if [ -z "$foo" ]; then

if [ -n "$foo" ]; then

This is more straightforward and readable than the syntax currently used in most places, e.g.:

if [ "x$foo" = "x" ]; then ...

if [ "x$foo" != "x" ]; then ...
Comment 4 Heiko W. Rupp 2013-09-04 03:49:29 EDT
Bulk closing of some old issues