zack-bitcoin / augur-core

A truthcoin protocol. https://github.com/psztorc/Truthcoin
16 stars 11 forks source link

Quotes in decision text are not escaped #10

Closed tinybike closed 10 years ago

tinybike commented 10 years ago

Single and double quotes are not escaped when using ./truth_cli.py ask_decision <jury> my_decision_name Pappasito's Grill is delicious -- instead, you get a prompt to enter more info. Suggest parsing quotes ' as \' (and double quotes " as \") instead.

zack-bitcoin commented 10 years ago

I think this is a problem with bash, not truthcoin. I could create a customized prompt, like appears when you call 'python'. That is how earlier versions of truthcoin worked.

I think it is nice to call truthcoin stuff from the bash prompt, even if quotes don't work normally. Scott's user interface stuff should fix these problems.