Greetings fish-users mailling list!
I just started using Fish on Ubuntu and really like it. I am slowly
leaving my old love ZSH.
I am trying to make fish work on OpenBSD and would eventually make a port
of fish for OpenBSD. But I just ran into a problem regarding getopt(1).
Fish assumes that the GNU version of getopt(1) is present. This version
comes with several extra-"features". Including long-options as
documented here:
http://www.rt.com/man/getopt.1.html
The problem is that most *BSD stick to 'classic' version of getopt(1)
without adding extra features:
http://www.freebsd.org/cgi/man.cgi?query=getopt
http://www.openbsd.org/cgi-bin/man.cgi?query=getopt
http://netbsd.gw.com/cgi-bin/man-cgi?getopt
These versions treat all options as options to be parsed and do not
support long-options parsing. Which means every time fish uses a
GNU/getopt options I get something like this:
getopt: unknown option -- Q
getopt: unknown option -- o
I guess that removing -Q from fish scripts is not a problem even though
I don't understand what it does, thanks to the 'clear' explanation in
the manual:
-Q, --quiet-output
Do not generate normal output. Errors are still reported by
getopt(3), unless you also use -q.
The long-options removal should not be a problem technically, since it
is possible to replace them with short options. The only problem is that
short-options are not as nice and explicit as long-options.
I can provide a patch, but I would like to be sure of what I am doing
before doing anything ;-)
Cheers,
--
Henry Pr?cheur
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users