+++ 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. How reproducible: always 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" Actual results: the script outputs "3" Expected results: "1" --- Additional comment from lkrejci on 2011-11-18 10:10:31 EST --- commit 6dac40e6a8caf01a9ad7d06fde5a511eac545569 Author: Lukas Krejci <lkrejci> 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 mfoley on 2011-11-22 11:40:39 EST --- verified. [mfoley@foleymonsterbox1 bin]$ ./rhq-cli.sh -f ../argcnt.js "arg with spaces" 1 [mfoley@foleymonsterbox1 bin]$
release/jon3.0.x: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=2806ea72b6c6848d5897f28fee1fb10ec5a877ea
Moving to ON_QA for testing with JON 3.0.1.GA RC5 or better: https://brewweb.devel.redhat.com//buildinfo?buildID=199114
Verified on JON 3.0.1.GA RC5 (Build Number: dd8a001:fbca611) [root@suniltest bin]# ./rhq-cli.sh -f ../argcnt.js "arg with spaces" 1
Bulk closing of old issues in VERIFIED state.