2009/2/2 Henry Precheur <he...@precheur.org>
> On Mon, Feb 02, 2009 at 12:07:13AM +0100, Axel Liljencrantz wrote:
> > If you still want to do an OpenBSD port I'll be happy to help. I have a
> work
> > mate who is a big fan of OpenBSD, and is actually the auther of the 'Book
> of
> > PF', a very nice book on using OpenBSD as a firewall. An OpenBSD port of
> > fish might convince him to switch shells. :)
>
> OK, I haven't done much since. I was kind of wondering if fish was still
> being maintained :)
>
> > About the getopt issue, I would say that using the bsd getopt without
> > gnu-style options should be ok. The reason for this is that somewhere
> around
> > 99 % of all the option parsing in fish is done on fish builtins, not on
> fish
> > or any other proper binaries. And fish builtins use an internal getopt
> > implementation, since there exists no library to parse options that are
> wide
> > character strings, and fish uses wide character strings internally.
>
> OK, I will get the development version of fish and remove all the
> 'GNUish' call to getopt. Don't expect the patch anytime soon though, I
> will be pretty busy for a while.
>
Shouldn't even need to do that, with a bit of luck. The fish autoconf script
detects if getopt_long is missing, and creates a fallback, which simply
calls getopt and completely ignores the long options. The fallback stuff is
is handled in fallback.c/fallback.h. The main idea ofthe setup is for the
main program to simply assume that everything is working, and to implement
fallbacks for any missing or broken functionality in fallback.[ch]. The
benefit of this is to separate the platform incompatibility cruft from the
actual code, thus keeping the actual code as clean and readable as possible.
Fish used to comiple and work just fine on both NetBSD and Solaris, so while
fish is unfortunatly a bit Linux centric (especially in it's tab
completions), it shouldn't be completely brain dead when it comes to
handling different platforms.
Axel
>
>
> Cheers,
>
> --
> Henry PrĂȘcheur
>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users