News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
"murgaLua -e string" in Windows and Mac
Author Message

Posts: 81
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: "murgaLua -e string" in Windows and Mac

mikshaw Wrote:
In Linux I can pass a variable to a script using the following:

murgaLua -e 'variable=\"this is a string\"' scriptname.lua

This apparently doesn't work in Windows, and I'm not sure about Mac (I think it probably works).

Why do you think that this doesn't work in Windows?
You don't have to escape the double quotes when you use the single quotes. lua -e 'variable="string"' works perfectly. You only have to escape the double quotes when you use double quotes to quote ;-) (-e "variable=\"string\"")

On Windows you can only use double quotes, but the escape mechanism is the same as on Linux or nearly every other OS.


02-22-2008 08:05 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
RE: "murgaLua -e string" in Windows and Mac - Juergen - 02-22-2008 08:05 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: