This seems to be something we should start thinking of soon, very soon.. The original USERLAND variable was originally set to GNU or BSD to indicate the flavor of the system commands. This dicotomic assignment demonstrated itself too generic, and we currently have GNU, BSD and Darwin. This is still too generic: the different BSDs have different handling of some pieces like tar or user handling.
What I think should be the case is to reserve USERLAND as be, for G/*BSD, one of FreeBSD, NetBSD, OpenBSD, DragonFlyBSD. The checks for specific userland can then be managed this way. userland_BSD expansion is never used in current tree, most of userland_* expansion is for Darwin and GNU, so it's not a problem. The tests for [[ "$USERLAND" == "BSD" ]] can almost all be changed to [[ $USERLAND = *BSD ]] as that would take all the BSD variants. Specific tests can use the quoting to avoid expansion. If nobody has problem with this, in the next days I'll change the tree where necessary... -- Diego "Flameeyes" Pettenò Gentoo Developer - http://dev.gentoo.org/~flameeyes/ (Gentoo/FreeBSD, Video, Gentoo/AMD64, Sound, PAM)
pgpMrb1takhWq.pgp
Description: PGP signature
