lua-users home
lua-l archive

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


> Instead of calling the function directly, the wrapper could return a
> "command" object, that you would have to execute

...

> You could also feed some string to the command or command chain,
> passed in the last parenthesis pair, that would be inserted as stdin :

> local output = ( commandA .. commandB .. commandC ) ( input )

> Would be roughly equivalent to :

> cat input | commandA | commandB | commandC > output

Nice idea too.

I do not like resulting syntax though. Need to think about it more :-)

Thanks,
Alexander.