Hi, at least with cl_status, there is a problem on OpenBSD:
http://developerbugs.linux-foundation.org/show_bug.cgi?id=1826 I took a closer look and found out that the openbsd getopt(3) strictly conforms to POSIX, but not the GNU one, therefore stuff like this is working on Linux, but not on OpenBSD: cl_status listnodes -n on OpenBSD the parameters behind listnodes are ignored on OpenBSD because the strict conformity to POSIX. You can make Linux strictly conform to POSIX when you define the environment variable POSIXLY_CORRECT before running e.g. export POSIXLY_CORRECT=YES cl_status listnodes -n then you have the same behavior as I experience on OpenBSD. On the OpenBSD misc list I got the suggestion to either prepend the listnodes with an option, e.g. cl_status -c listnodes -n to make it work, or to fiddle around with argc, argv, to filter out the non option arguments before the first option. How is getopt behaving on other *BSD/Solaris? You can use cl_status or the small test program that I added to the bug report mentioned above. any objections on this, what would be the best way to make it work on OpenBSD? cheers Sebastian _______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
