lua-users home
lua-l archive

Re: WANTED: POSIX compatible getopt

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


On 2009年1月09日 17:00:01 +0200
Aleksey Cheusov <cheusov@tut.by> wrote:
> > Have you considered just writing a little C code to bind the C
> > library's getopt? 
>
> It trivial to implement getopt_long in LUA. I did it for AWK some time
> ago, ~150 lines of code. Also the problem with C code is that
> getopt_long(3) is not available on Solaris/HP-UX and some
> others. getopt_long(3) is not portable.
Surely getopt_long is not POSIX, however? I'm confused about your
requirements, here.
Also: Lua is not an acronym, and thus should be capitalised as a
proper-noun :)
-- 
B.

AltStyle によって変換されたページ (->オリジナル) /