Closed jn0 closed 12 years ago
The emperor's new clothes (TENC) code has a quote misuse (an artifact of how push and pop had to be implemented), I'll correct that.
As far as the quotation for the eval, $base$nextval is safe and doesn't need a quote; think about that one, I think it's right here.
But as far as the value goes; the white space is incorrectly collapsed on that value; and if that bug was fixed then they may need quotes; I'm too foggy headed right now to know for sure, but I'll open a bug against me just in case.
Fixed as of [1] https://github.com/kristopolous/TickTick/commit/e1ecdb1a81fbd893e05e094ec07ce9713038f87b [2] https://github.com/kristopolous/TickTick/commit/25d4614bb224b871c17a770a5c12e23ca9f28a74
Synopsis: You are correct with the quote issue in the push (see 1)... pop had to be solved a different way (see 2). In order to accommodate things like "key \" tricky stuff", I had to escape the quotes before the assignment; so that's being done too now.
Thanks for filing this. I highly value your input. :)
Line #218 in ticktick.sh must read as eval "'$base$nextval'='$value'" and not eval $base$nextval=$value or even the test http://qaa.ath.cx/TheEmperorsNewClothes.html fails.