[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua CLI: how to pass arguments to -e
- From: Leo Razoumov <slonik.az@...>
- Date: Sun, 12 Dec 2010 08:20:37 -0500
On Sun, Dec 12, 2010 at 08:11, steve donovan <steve.j.donovan@gmail.com> wrote:
> On Sun, Dec 12, 2010 at 12:28 PM, Alexander Gladysh <agladysh@gmail.com> wrote:
>> $ lua -e 'print(...)' 1 2 3
>
> The basic problem is that the program arguments are not available using -e
>
> It would be relatively easy to write your own Lua launcher which would
> have exactly the properties you desire ...
>
> steve d.
>
I presume that the -e string is either typed in manually or generated
by some code. One can simply make input data part of the -e string
like
$ lua -e 'print(1,2,3)'
Problem avoided (not solved)
--Leo--