Red Hat Bugzilla – Bug 754968
CLI doesn't support arguments with spaces
Last modified: 2013-08-31 05:56:08 EDT
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"
Author: Lukas Krejci <firstname.lastname@example.org>
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.
[mfoley@foleymonsterbox1 bin]$ ./rhq-cli.sh -f ../argcnt.js "arg with spaces"