[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua CLI: how to pass arguments to -e
- From: Miles Bader <miles@...>
- Date: Mon, 13 Dec 2010 13:51:32 +0900
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
-Miles
--
Guilt, n. The condition of one who is known to have committed an indiscretion,
as distinguished from the state of him who has covered his tracks.