lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.