put shell() and escaping quotes, how to do this?

Peter Alcibiades palcibiades-first at yahoo.co.uk
Wed Dec 30 15:25:04 EST 2009


David, problem is, it will not let you use double quotes.  So for instance

          put shell("echo -e "\x1C" > usb/dev/lp0")

will not compile, because of the double quotes.  Then if you replace the
innermost double quotes with single quotes, it compiles fine, and it works
fine from the shell, but when done from the message box, it prints the \x1C
instead of escaping the x and treating it as a signal to the shell that we
are in the land of hex.

Mark thanks.  I'll have a go with it.  Mind boggling, that!  Its like
regular expressions, there always comes some point at which some simple
thing makes the head hurt.

Peter
-- 
View this message in context: http://n4.nabble.com/put-shell-and-escaping-quotes-how-to-do-this-tp991042p991139.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list