[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua as replacement for Bash scripting
- From: Alexander Gladysh <agladysh@...>
- Date: Wed, 7 Jul 2010 02:10:31 +0400
> 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.