[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua as replacement for Bash scripting
- From: Hisham <hisham.hm@...>
- Date: Mon, 12 Jul 2010 18:37:06 -0300
On Mon, Jul 12, 2010 at 6:27 PM, Alexander Gladysh <agladysh@gmail.com> wrote:
> BTW. Perhaps I've missed it in the earlier discussion, but why do we
> write calls in reverse?
>
> Isn't this better? It would allow some fancier chaining if we need one:
>
> if sh.find("/etc", {name="*rc", ctime="+30"}).ok() then ...
This would take over the entire namespace of sh.*. Also, if we ever
manage to implement piping like grep().sort(), special functions in
the end like ok() could clash with program names.
-- Hisham
- References:
- Lua as replacement for Bash scripting, Alexander Gladysh
- Re: Lua as replacement for Bash scripting, Jerome Vuarand
- Re: Lua as replacement for Bash scripting, Alexander Gladysh
- Re: Lua as replacement for Bash scripting, Jerome Vuarand
- Re: Lua as replacement for Bash scripting, Hisham
- Re: Lua as replacement for Bash scripting, Alexander Gladysh
- Re: Lua as replacement for Bash scripting, Florian Weimer
- Re: Lua as replacement for Bash scripting, Javier Guerra Giraldez
- Re: Lua as replacement for Bash scripting, Alexander Gladysh
- Re: Lua as replacement for Bash scripting, Hisham
- Re: Lua as replacement for Bash scripting, Alexander Gladysh