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 <peter.br...@livecode.com>
LiveCode Open Source Team

LiveCode on reddit: https://reddit.com/r/livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to