Re: Somewhat off-topic, but hard to find better portability people.

2008-09-16 Thread Ralf Wildenhues
Hello Peter, * Peter Seebach wrote on Wed, Sep 17, 2008 at 06:12:40AM CEST: > > I am looking for systems on which the following *do not* work: > > unset Quoting the Autoconf manual: | `unset' | In some nonconforming shells (e.g., Bash 2.05a), `unset FOO' fails | when `FOO' is not set.

Somewhat off-topic, but hard to find better portability people.

2008-09-16 Thread Peter Seebach
Hi! Gary Vaughn pointed me at gnulib for portability experts. I've been working on some portable shell scripting material. I'm trying to track down the details of a couple of "some systems can't..." comments from the Autoconf documentation, because I haven't been able to find any such systems.

Re: please add scandir, alphasort, versionsort

2008-09-16 Thread Karl Berry
Then, since these functions are pretty OS independent, you could take their glibc implementation, And, if we can keep the source file identical between libc and gnulib, then we can keep it automatically in sync. Though we are doing less and less of that these days :(. karl

c-stack and Irix

2008-09-16 Thread Eric Blake
I've finally figured out why c-stack is being finicky on Irix 5.3 [1]. POSIX requires that sigaltstack be given ss_sp pointing to the smallest address in the alternate stack. But Irix is non-compliant, and treats ss_sp as the starting address of the stack (which, since it grows down, makes it

vasnprintf(-0.0L) on Irix [was: snapshot in preparation for m4 1.4.12]

2008-09-16 Thread Eric Blake
Bruno Haible clisp.org> writes: > > > the system sprintf does not know how to print -0, so the result is > > > 0.00 and lacks -. Does it make more sense to adjust the existing > > > gl_PRINTF_INFINITE_LONG_DOUBLE (which also tests for NaN) to add a test > > > for negative zero, or to add a n

Re: [PATCH] posix-shell.m4: reject Solaris 11's /bin/sh (due to umask)

2008-09-16 Thread Peter O'Gorman
Jim Meyering wrote: > Peter O'Gorman <[EMAIL PROTECTED]> wrote: > >> Eric Blake wrote: >>> According to Jim Meyering on 9/16/2008 3:58 AM: Jim Meyering <[EMAIL PROTECTED]> wrote: > I discovered that Solaris 11's /bin/sh exhibits the following > surprising behavior: > > $ /

Re: [PATCH] posix-shell.m4: reject Solaris 11's /bin/sh (due to umask)

2008-09-16 Thread Jim Meyering
Peter O'Gorman <[EMAIL PROTECTED]> wrote: > Eric Blake wrote: >> According to Jim Meyering on 9/16/2008 3:58 AM: >>> Jim Meyering <[EMAIL PROTECTED]> wrote: I discovered that Solaris 11's /bin/sh exhibits the following surprising behavior: $ /bin/sh -c 'umask 22; (umask 0);

Re: [PATCH] posix-shell.m4: reject Solaris 11's /bin/sh (due to umask)

2008-09-16 Thread Peter O'Gorman
Eric Blake wrote: > According to Jim Meyering on 9/16/2008 3:58 AM: >> Jim Meyering <[EMAIL PROTECTED]> wrote: >>> I discovered that Solaris 11's /bin/sh exhibits the following >>> surprising behavior: >>> >>> $ /bin/sh -c 'umask 22; (umask 0); umask' >>> > > We should also document t

Re: [PATCH] posix-shell.m4: reject Solaris 11's /bin/sh (due to umask)

2008-09-16 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 9/16/2008 3:58 AM: > Jim Meyering <[EMAIL PROTECTED]> wrote: >> I discovered that Solaris 11's /bin/sh exhibits the following >> surprising behavior: >> >> $ /bin/sh -c 'umask 22; (umask 0); umask' >> We shoul

Re: please add scandir, alphasort, versionsort

2008-09-16 Thread Bruno Haible
Michael Haubenwallner wrote: > Can I help somehow? Eric is right: First, you need to submit a copyright assignment for your gnulib contributions to the FSF. Then, since these functions are pretty OS independent, you could take their glibc implementation, add a module description, an autoconf macr

Re: [PATCH] testsuite for poll(2)

2008-09-16 Thread Paolo Bonzini
> This solved the 'unconnected socket test': > Unconnected socket test... passed > > Connected sockets test... failed (expecting POLLHUP after shutdown) > General socket test with fork... failed (expecting POLLHUP after shutdown) Yes, it was not meant to fix the others. Paolo

Re: [PATCH] testsuite for poll(2)

2008-09-16 Thread Yoann Vandoorselaere
Le mardi 16 septembre 2008 à 10:28 +0200, Paolo Bonzini a écrit : > Yoann Vandoorselaere wrote: > > Le lundi 15 septembre 2008 à 21:21 +0200, Paolo Bonzini a écrit : > >>> The poll-tests module that is now available in the GnuLib repository > >>> currently fail on OpenBSD: > >>> > >>> Unconnected s

Re: [PATCH] posix-shell.m4: reject Solaris 11's /bin/sh (due to umask)

2008-09-16 Thread Jim Meyering
Jim Meyering <[EMAIL PROTECTED]> wrote: > I discovered that Solaris 11's /bin/sh exhibits the following > surprising behavior: > > $ /bin/sh -c 'umask 22; (umask 0); umask' > > > That would cause test failures in coreutils, because gl_POSIX_SHELL > accepted /bin/sh. The following chan

Re: [PATCH] testsuite for poll(2)

2008-09-16 Thread Paolo Bonzini
Yoann Vandoorselaere wrote: > Le lundi 15 septembre 2008 à 21:21 +0200, Paolo Bonzini a écrit : >>> The poll-tests module that is now available in the GnuLib repository >>> currently fail on OpenBSD: >>> >>> Unconnected socket test... failed (huh, connect succeeded?) >>> Connected sockets test... f

Re: [PATCH] testsuite for poll(2)

2008-09-16 Thread Yoann Vandoorselaere
Le lundi 15 septembre 2008 à 21:21 +0200, Paolo Bonzini a écrit : > > The poll-tests module that is now available in the GnuLib repository > > currently fail on OpenBSD: > > > > Unconnected socket test... failed (huh, connect succeeded?) > > Connected sockets test... failed (huh, connect succeeded