lua-users home
lua-l archive

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



16.07.2010, в 19:52, Hisham <hisham.hm@gmail.com> написал(а):

> On Fri, Jul 16, 2010 at 7:51 AM, Alexander Gladysh <agladysh@gmail.com> wrote:
>> On Tue, Jul 13, 2010 at 02:06, Alexander Gladysh <agladysh@gmail.com> wrote:
>> 
>>>  sh. gcc { o = file } (file..'.c") .I. grep 'error' .I. sort .out
>> 
>> Um. So, any comments?
> 
> I found it too weird, especially if the goal of moving away from sh
> scripting is to avoid gotchas caused by weird-and-magic syntax.

OK, no problem. 

> I've been playing a bit with the implementation here -- I basically
> copied Penlight's path code and added some more command launchers
> (sh.lines and sh.tokens, both return generators for "for").

Cool!

> I was in
> the process of rewriting a large shell script I have but the process
> is proving to be harder than I expected due to the amount of ugly
> tricks caused by variable scoping I employed there. So I didn't get to
> properly test much of the code I wrote, and therefore I ended up not
> committing it yet.

As they say, commit early, commit often :)

Even if code does not work — this early in the project it does not matter much.

Alexander. 
>