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
Juergen
Member
***


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

Quote:
On Windows you can only use double quotes

I'm guessing it was probably the backspace that was causing the error then? Or do I need to always use only double quotes if I want it to work in Windows? If that's the case how would you nest quotes?
[/quote]
The same as on Linux:

Code:
lua -e var="string" --doesn' work on Windows or Linux
lua -e var='string' -- does work on Windows but not on Linux
lua -e var=\"string\" --does work on Windows and Linux
lua -e "var=\"string\"" --does work on both
lua -e 'var="string"' -- works on Linux but not on Windows
lua -e "var='string'" -- works on both
lua -e "var=\'string\'" -- works on Linux but not on Windows
lua -e var1=\"string\"\ var2=\"string\" -- works on Linux but not on Windows
...

This applies to Bourne/Korn compatible shells on Linux and CMD on Windows. Other shells might have a different quoting behavior.

Juergen

02-22-2008 08:12 PM
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:12 PM

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

Forum Jump: