Bug 791009 - 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
Summary: in Server, Agent, and CLI launch scripts, use the -z and -n options to the 't...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Launch Scripts
Version: 4.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Charles Crouch
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-15 22:27 UTC by Ian Springer
Modified: 2015-02-01 23:27 UTC (History)
3 users (show)

Fixed In Version: 4.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-04 07:49:29 UTC
Embargoed:


Attachments (Terms of Use)

Description Ian Springer 2012-02-15 22:27:49 UTC
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 07:49:29 UTC
Bulk closing of some old issues


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