[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: sh module (WAS: Re: Is "scripting" truly Lua's future?)
- From: Natanael Copa <natanael.copa@...>
- Date: Tue, 16 Sep 2008 16:58:07 +0200
On Tue, 2008-09-16 at 01:07 -0400, Norman Ramsey wrote:
> > Would it be an idea to collect those in a lib so we might find those in
> > linux/bsd distros? It could be called "sh".
> Yes, this would be good. And 'dirname' and 'basename' as well.
> I also wrote an iterator which expands some (not all) shell glob
> patterns. It is a big, nasty ball of hair.
as you said, its good togheter with a posix module.
luaposix have posix.dirname(), posix.basename() and posix.glob().
we could add fnmatch() to luaposix too if we want. patches are welcome.