[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua CLI: how to pass arguments to -e
- From: Alexander Gladysh <agladysh@...>
- Date: Mon, 13 Dec 2010 06:41:53 +0300
On Mon, Dec 13, 2010 at 05:58, HyperHacker <hyperhacker@gmail.com> wrote:
> On Sun, Dec 12, 2010 at 17:25, Patrick Donnelly <batrick@batbytes.com> wrote:
>> In bash:
>> lua <(echo 'code') arg1 arg2 ...
> Maybe easier to deal with:
> $ echo 'print(arg[1])'|lua - 1 2 3
> does basically the same thing, just a bit cleaner.
This does not allow script to access stdin. See my small test in the
previous post.
Alexander.