On 14/12/2015 15:50, Brahmanathaswami wrote:
Are single quotes and double quotes equivalent in Livecode?
that would be new, i don't think soS
Single quotes do not work
No, single quotes and double quotes are not equivalent in LiveCode.
However, the shell ignores any escape characters or " characters inside
single-quoted strings.
So, you can do:
replace "'" with "\'" in tBody
put merge("echo '[[tBody]]' | ") into tCmd
and your tBody should be protected from shell expansion.
Peter
--
Dr Peter Brett <[email protected]>
LiveCode Open Source Team
LiveCode on reddit: https://reddit.com/r/livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode