Red Hat Bugzilla – Bug 790074
CLI doesn't support arguments with spaces
Last modified: 2015-02-01 18:27:42 EST
+++ This bug was initially created as a clone of Bug #754968 +++
Description of problem:
CLI is not able to accept arguments containing spaces.
rhq-cli.sh -f script.js "arg with spaces"
will be interpreted as if 3 arguments were passed to the script.
Steps to Reproduce:
1. create script called argcnt.js with a single line "println(args.length);"
2. execute the RHQ CLI with the script and an argument "arg with spaces"
the script outputs "3"
--- Additional comment from firstname.lastname@example.org on 2011-11-18 10:10:31 EST ---
Author: Lukas Krejci <email@example.com>
Date: Fri Nov 18 16:08:13 2011 +0100
[BZ 754968] - making quoted arguments work with CLI on *nix.
Windows startup script surprisingly seems to support this ok.
--- Additional comment from firstname.lastname@example.org on 2011-11-22 11:40:39 EST ---
[mfoley@foleymonsterbox1 bin]$ ./rhq-cli.sh -f ../argcnt.js "arg with spaces"
Moving to ON_QA for testing with JON 3.0.1.GA RC5 or better:
Verified on JON 3.0.1.GA RC5 (Build Number: dd8a001:fbca611)
[root@suniltest bin]# ./rhq-cli.sh -f ../argcnt.js "arg with spaces"
Bulk closing of old issues in VERIFIED state.