Closed GoogleCodeExporter closed 8 years ago
This is probably true for all utilities
Original comment by daweonline
on 20 Dec 2011 at 1:35
I'd like to try to get regular getopt to work on a Mac first. It's supposed
to work. I can't imagine it's broken entirely....
Original comment by earone...@gmail.com
on 11 Jan 2012 at 5:45
It is supposed to work but, since this probably depends on a os x bug, OS X
users cannot simply use ea-utils if running on Lion.
Given that "The implementation can completely replace getopt(3), but right now
we are using separate code." (from getopt_long(3)), given that the getopt_long
version is not dramatically different from the original, I would suggest to use
it as default (allowing for future long options).
Original comment by daweonline
on 11 Jan 2012 at 10:40
ok, i'll try it as the default
all the utils need a getline for OSX as well
Original comment by mooncost...@gmail.com
on 13 Jan 2012 at 4:37
Did you try adding the #include <getopt.h> only... i think that's all it needs.
Original comment by earone...@gmail.com
on 13 Jan 2012 at 4:08
I really need an OSX shell account. I made a bunch of changes to get things to
work (including getline, ifdefs, etc) but I don't know if they do.
Original comment by earone...@gmail.com
on 13 Jan 2012 at 4:18
I'll try to add the include ASAP, although unistd.h should include getopt.
Original comment by daweonline
on 13 Jan 2012 at 4:33
Tried. Doesn't work. I'm suspecting some odd behavior of g++.
Original comment by daweonline
on 17 Jan 2012 at 10:20
New ver should have better os/x support as far as a built-in "getline". I'm
still a bit reluctant to make this change without knowing what's wrong .... It
seems to me that hundreds of programs would break if getopt wasn't working in
Lion. maybe it was just the "int" ... that was nonstandard (but common).
Original comment by earone...@gmail.com
on 17 Jan 2012 at 3:05
I want to help in debug and I will do. The "int" thing, well, that is
definitely not the problem (behavior is the same with int or char).
Original comment by daweonline
on 17 Jan 2012 at 3:27
I can confirm version 1.1.2-301 works
Original comment by daweonline
on 17 Jan 2012 at 10:33
marking as fixed as of 301 as per daweonline's test
Original comment by earone...@gmail.com
on 23 Jan 2012 at 8:29
Original issue reported on code.google.com by
daweonline
on 20 Dec 2011 at 1:35