[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: Tue, 13 Jul 2010 01:29:52 +0400
On Mon, Jul 12, 2010 at 21:26, steve donovan <steve.j.donovan@gmail.com> wrote:
> On Mon, Jul 12, 2010 at 6:57 PM, Hisham <hisham.hm@gmail.com> wrote:
>> My first impression is that this could improve readability, and
>> further reduce escaping/concatenations. OTOH it could bring confusion
>> when argument order matters, and, in general, the whole thing may be
>> overkill. Any impressions?
> I had exactly the same thought on the bus last week, liked the syntax,
> and also worried about option order. It is a very Lua-like idiom,
> particularly cool when the option values are not constants, and a good
> alternative to shell thinking, which is to build command lines by
> expanding variables.
> sh.out.gcc {o = file, file..'.c"}
BTW, if we do chaining (see my letter to Hisham), we may do this:
sh.gcc { o = "file.o" } "file.c" ().out
With variables we need braces:
sh.gcc { o = file } (file .. ".c").out
Alexander.
- 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, steve donovan