lua-users home
lua-l archive

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


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[1] have posix.dirname(), posix.basename() and posix.glob().

we could add fnmatch() to luaposix too if we want. patches are welcome.

-nc

[1] http://luaforge.net/projects/luaposix/