Re: FYI, /bin/sh bug on opensolaris 5.11

2011-04-13 Thread Tim Rice
On Wed, 13 Apr 2011, Bruno Haible wrote: > Jim Meyering wrote: > > This script segfaults on opensolaris 5.11 snv_134 i86pc: > > It works fine on Solaris 11 preview from November 2010 > (SunOS 5.11 snv_151a i86pc), with shell > > $ echo $KSH_VERSION > Version JM 93t+ 2010-03-05 And AT&T labs squ

safe-write, full-read: trim dependencies

2011-04-13 Thread Bruno Haible
In the 'safe-write' module description that I committed on 2002-12-31 there is a dependency to 'safe-read'. This causes safe-read.c to be compiled to safe-read.o, although this is not necessary: safe-write.c needs the source code of safe-read.c but does not need safe-read.o. Similarly with the 'fu

non-blocking I/O in pwrite

2011-04-13 Thread Bruno Haible
When a package uses the gnulib modules 'pwrite' and 'nonblocking', it ought to get a pwrite() function that works on non-blocking file descriptors. This implements it. 2011-04-13 Bruno Haible Support non-blocking pipe I/O and SIGPIPE in pwrite(). * modules/pwrite (Depends-on):

Re: FYI, /bin/sh bug on opensolaris 5.11

2011-04-13 Thread Jim Meyering
Bruno Haible wrote: > Jim Meyering wrote: >> This script segfaults on opensolaris 5.11 snv_134 i86pc: > > It works fine on Solaris 11 preview from November 2010 > (SunOS 5.11 snv_151a i86pc), with shell > > $ echo $KSH_VERSION > Version JM 93t+ 2010-03-05 Thanks for checking.

Re: FYI, /bin/sh bug on opensolaris 5.11

2011-04-13 Thread Bruno Haible
Jim Meyering wrote: > This script segfaults on opensolaris 5.11 snv_134 i86pc: It works fine on Solaris 11 preview from November 2010 (SunOS 5.11 snv_151a i86pc), with shell $ echo $KSH_VERSION Version JM 93t+ 2010-03-05 Bruno -- In memoriam Anton Schmid

Re: FYI, /bin/sh bug on opensolaris 5.11

2011-04-13 Thread Jim Meyering
Ralf Wildenhues wrote: > * Jim Meyering wrote on Wed, Apr 13, 2011 at 08:48:03PM CEST: >> This script segfaults on opensolaris 5.11 snv_134 i86pc: > > Could you (or somebody else) report this upstream, please? > Or ping me, so I'll eventually do it? Hi Ralf, Is opensolaris still being worked on?

Re: FYI, /bin/sh bug on opensolaris 5.11

2011-04-13 Thread Ralf Wildenhues
Hi Jim, * Jim Meyering wrote on Wed, Apr 13, 2011 at 08:48:03PM CEST: > This script segfaults on opensolaris 5.11 snv_134 i86pc: Could you (or somebody else) report this upstream, please? Or ping me, so I'll eventually do it? Thanks, Ralf

FYI, /bin/sh bug on opensolaris 5.11

2011-04-13 Thread Jim Meyering
FYI, This script segfaults on opensolaris 5.11 snv_134 i86pc: #!/bin/sh rm -f x && \ echo y | sed -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, \ -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, \ -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, -e s,,, -e

writing to non-blocking pipes on Windows

2011-04-13 Thread Bruno Haible
I've fixed the 'nonblocking' unit test for pipes now, so that it succeeds on all Unix platforms except Cygwin. On mingw, I've got two failures, though. The first one is because write() on a non-blocking pipe sets errno to ENOSPC instead of EAGAIN. $ ./test-nonblocking-pipe-main.exe ./test-nonbl