[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 07:55:53 +0300
On Mon, Dec 13, 2010 at 07:51, Miles Bader <miles@gnu.org> wrote:
> Alexander Gladysh <agladysh@gmail.com> writes:
>>> In bash:
>>> lua <(echo 'code') arg1 arg2 ...
>> Wow! It passes my stdin test! How? o_O
> Another way that might be more portable:
> echo 'print("A", ...)' | lua - 1 2 3
This seems to be quite popular.
Sorry, but the script can't use stdin with this version (see my
earlier post in this topic).
Alexander.