digat / cliche

Automatically exported from code.google.com/p/cliche
MIT License
0 stars 0 forks source link

command arguments cannot contain " or ' characters #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Define a command that takes one argument and writes it to stdout.
2. Execute shell, supply an argument that contains a " or ' character.
3. Observe the value of the argument written to stdout.

What is the expected output? What do you see instead?

I would expect the " or ' character to be included in the stdout, but it is 
apparently being stripped out.

What version of the product are you using? On what operating system?

Cliche version 110413
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
OS X 10.9.5 (13F34)

Please provide any additional information below.

Attempted to escape the quote characters with \, but doesn't seem to help.  It 
would be very useful to be able to include " or ' characters as this allows for 
a small JSON or XML fragment to be provided as a command argument.

Original issue reported on code.google.com by balthor...@gmail.com on 11 Feb 2015 at 8:49