Re: WANTED: POSIX compatible getopt
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: WANTED: POSIX compatible getopt
- From: Rob Kendrick <lua-l@...>
- Date: Fri, 9 Jan 2009 15:05:09 +0000
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.