[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua CLI: how to pass arguments to -e
- From: Enrico Colombini <erix@...>
- Date: Sun, 12 Dec 2010 14:53:13 +0100
On 12/12/2010 14.28, Alexander Gladysh wrote:
The arguments come from the end-user. I want the shell to escape
arguments for me.
A not-very-clean possibility (Windows version, use $n for Linux):
(caller.bat):
lua -e "arg={%1, %2, %3} print(arg[1], arg[2], arg[3])"
(command line)
caller 22 44 66
--> 22 44 66
(or variations on this theme)
--
Enrico