Re: noisy gnulib-tool on IRIX

2010-09-08 Thread Bruno Haible
Hi Eric, > hence the common idiom of first checking if alias/unalias exist using > a subshell check, and if so then using them in the parent shell. Ah, I didn't think of this trick. But as you noticed, the trick I've found is more efficient, so I'll use it. > $ /bin/sh -c 'alias 2>/dev/null' > a

Re: POSIXLY_CORRECT not correctly unset in getopt.m4?

2010-09-08 Thread Paolo Bonzini
On 09/07/2010 10:39 PM, Eric Blake wrote: gl_awk_probe='BEGIN { for (v in ENVIRON) if (v == "POSIXLY_CORRECT") print "x" }' case ${POSIXLY_CORRECT:+x}`awk "$gl_awk_probe" Walking all of ENVIRON seems slow. What about gl_awk_probe='BEGIN {print !!length(ENVIRON

Re: POSIXLY_CORRECT not correctly unset in getopt.m4?

2010-09-08 Thread Bruno Haible
[removing bug-standards from the CC list] Paolo Bonzini wrote: > On 09/07/2010 10:39 PM, Eric Blake wrote: > > gl_awk_probe='BEGIN { for (v in ENVIRON) > > if (v == "POSIXLY_CORRECT") print "x" }' > > case ${POSIXLY_CORRECT:+x}`awk "$gl_awk_probe" > xx) gl_had_

Re: POSIXLY_CORRECT not correctly unset in getopt.m4?

2010-09-08 Thread Paolo Bonzini
On 09/08/2010 11:30 AM, Bruno Haible wrote: [removing bug-standards from the CC list] Paolo Bonzini wrote: On 09/07/2010 10:39 PM, Eric Blake wrote: gl_awk_probe='BEGIN { for (v in ENVIRON) if (v == "POSIXLY_CORRECT") print "x" }' case ${POSIXLY_CORRECT:+x}`awk "$g

[PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Jim Meyering
grep portability testing has exposed some unwarranted test failures. Using a better SHELL was the quick work-around. Fixing init.sh is the real fix: >From d79a9c27419cc4679620b9283351566ba6085cd2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 8 Sep 2010 15:18:46 +0200 Subject: [PATCH] ini

Re: noisy gnulib-tool on IRIX

2010-09-08 Thread Eric Blake
On 09/08/2010 02:44 AM, Bruno Haible wrote: Hi Eric, hence the common idiom of first checking if alias/unalias exist using a subshell check, and if so then using them in the parent shell. Ah, I didn't think of this trick. But as you noticed, the trick I've found is more efficient, so I'll use

Re: POSIXLY_CORRECT not correctly unset in getopt.m4?

2010-09-08 Thread Eric Blake
On 09/08/2010 03:56 AM, Paolo Bonzini wrote: On 09/08/2010 11:30 AM, Bruno Haible wrote: Paolo Bonzini wrote: On 09/07/2010 10:39 PM, Eric Blake wrote: gl_awk_probe='BEGIN { for (v in ENVIRON) if (v == "POSIXLY_CORRECT") print "x" }' case ${POSIXLY_CORRECT:+x}`awk "$gl_awk_probe" Walking all

Re: [PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Jim Meyering
Eric Blake wrote: > On 09/08/2010 07:20 AM, Jim Meyering wrote: >> grep portability testing has exposed some unwarranted test failures. >> Using a better SHELL was the quick work-around. >> Fixing init.sh is the real fix: >> >>> From d79a9c27419cc4679620b9283351566ba6085cd2 Mon Sep 17 00:00:00 200

Re: [PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Eric Blake
On 09/08/2010 08:45 AM, Jim Meyering wrote: If bash is manually installed, then things are okay. But all existing shells on a bare-bones installation output trace information. If that happens, the result will be that each init.sh-using test will be skipped. Fair enough - someone with enough

Re: [PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Eric Blake
On 09/08/2010 07:20 AM, Jim Meyering wrote: grep portability testing has exposed some unwarranted test failures. Using a better SHELL was the quick work-around. Fixing init.sh is the real fix: From d79a9c27419cc4679620b9283351566ba6085cd2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed,

Re: [PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Stefano Lattarini
On Wednesday 08 September 2010, Eric Blake wrote: > On 09/08/2010 07:20 AM, Jim Meyering wrote: > > Subject: [PATCH] init.sh: disqualify shells for which set -x > > corrupts stderr > > I'm a little worried that this patch might exclude all shells on a > given platform. For example, on IRIX 5.3: >

Adding xstat support

2010-09-08 Thread Eric Blake
Here's the best link I could quickly find summarizing the recent kernel discussions: http://groups.google.com/group/linux.kernel/browse_thread/thread/65f244ddf6829edf/4273489273fb9797?lnk=raot&pli=1 As far as I can tell, the proposed xstat patch has not yet hit the kernel proper, so we don't w

unsetenv test failure on openbsd 4.7

2010-09-08 Thread Jim Meyering
FYI, No big deal, and no rush for such a corner case... This certainly doesn't matter to grep. While testing for grep, I hit this: $ ./test-unsetenv test-unsetenv.c:49: assertion failed Abort trap (core dumped) [Exit 134 (SIGABRT)] It failed on this line: ASSERT (putenv ("") == -1);

[PATCH] strtod: work around IRIX 6.5 bug

2010-09-08 Thread Eric Blake
IRIX mis-parses "1e 1" as 10.0 and "" instead of 1.0 and "e 1". Because the original parse may differ from the reparse in terms of whether the value overflows, we have to do an errno dance. * lib/strtod.c (strtod): Reparse number on shorter string if exponent parse was invalid. * tests/test-strtod

Re: [PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Ralf Wildenhues
* Eric Blake wrote on Wed, Sep 08, 2010 at 04:58:11PM CEST: > On 09/08/2010 08:45 AM, Jim Meyering wrote: > >Besides, isn't Irix 5.x approaching effective museum-only status? > > Probably, but I don't (yet) have access to Irix 6.5 to test a newer > version of that platform. sh and ksh on IRIX 6.5

Re: [PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Jim Meyering
Ralf Wildenhues wrote: > * Eric Blake wrote on Wed, Sep 08, 2010 at 04:58:11PM CEST: >> On 09/08/2010 08:45 AM, Jim Meyering wrote: >> >Besides, isn't Irix 5.x approaching effective museum-only status? >> >> Probably, but I don't (yet) have access to Irix 6.5 to test a newer >> version of that plat

Re: [PATCH] strtod: work around IRIX 6.5 bug

2010-09-08 Thread Tom G. Christensen
On Wed, Sep 08, 2010 at 11:29:21AM -0600, Eric Blake wrote: > IRIX mis-parses "1e 1" as 10.0 and "" instead of 1.0 and "e 1". > Because the original parse may differ from the reparse in terms > of whether the value overflows, we have to do an errno dance. > > * lib/strtod.c (strtod): Reparse numbe

[PATCH] unsetenv: fix OpenBSD bug

2010-09-08 Thread Eric Blake
* m4/setenv.m4 (gl_FUNC_UNSETENV): Check for FreeBSD bug. * doc/posix-functions/unsetenv.texi (unsetenv): Update documentation. Reported by Jim Meyering. Signed-off-by: Eric Blake --- > No big deal, and no rush for such a corner case... > This certainly doesn't matter to grep. > It failed on thi

Re: [PATCH] unsetenv: fix OpenBSD bug

2010-09-08 Thread Eric Blake
On 09/08/2010 01:54 PM, Eric Blake wrote: Minor or not, the fix was easy. In moving from 3.8 to 4.7, the OpenBSD folks have fixed some, but not all, of the bugs that they have in unsetenv. @@ -89,6 +90,7 @@ int unsetenv(); entry[0] = 'a'; unsetenv ("a"); if (getenv ("

Re: [PATCH] unsetenv: fix OpenBSD bug

2010-09-08 Thread Stefano Lattarini
On Wednesday 08 September 2010, Eric Blake wrote: > * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for FreeBSD bug. Souldn't it be `OpenBSD bug'? (Ditto for the ChangeLog entry) Regards, Stefano

Re: [PATCH] unsetenv: fix OpenBSD bug

2010-09-08 Thread Eric Blake
On 09/08/2010 02:00 PM, Stefano Lattarini wrote: On Wednesday 08 September 2010, Eric Blake wrote: * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for FreeBSD bug. Souldn't it be `OpenBSD bug'? (Ditto for the ChangeLog entry) Yep - thanks for the careful review, and I'm glad I didn't push yet. -- E

strstr broken on alpha GNU/Linux

2010-09-08 Thread Eric Blake
I received an off-list report of a test-strstr failure on m4 1.4.15: Linux xxx 2.6.34-gentoo-r1 #1 SMP Sun Aug 8 17:45:07 MDT 2010 alpha GNU/Linux gcc (Gentoo 4.4.3-r2 p1.2) 4.4.3 /bin/sh: line 1: 30207 Segmentation fault (core dumped) EXEEXT='' srcdir='.' LOCALE_FR='fr_FR' LOCALE_FR_UTF

Re: Updated and completed patches to regex.texi

2010-09-08 Thread Reuben Thomas
Thanks, Karl. I take it that someone did review my patches? (Not mentioned either in this thread or on the commit log AFAICS, except Paolo saying he was going to.)

Re: strstr broken on alpha GNU/Linux

2010-09-08 Thread Mike Frysinger
On Wednesday, September 08, 2010 16:36:13 Eric Blake wrote: > I received an off-list report of a test-strstr failure on m4 1.4.15: > > Linux xxx 2.6.34-gentoo-r1 #1 SMP Sun Aug 8 17:45:07 MDT 2010 alpha > GNU/Linux > gcc (Gentoo 4.4.3-r2 p1.2) 4.4.3 > > /bin/sh: line 1: 30207 Segmentation fault

Re: [PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Jim Meyering
Jim Meyering wrote: > Ralf Wildenhues wrote: >> * Eric Blake wrote on Wed, Sep 08, 2010 at 04:58:11PM CEST: >>> On 09/08/2010 08:45 AM, Jim Meyering wrote: >>> >Besides, isn't Irix 5.x approaching effective museum-only status? >>> >>> Probably, but I don't (yet) have access to Irix 6.5 to test a n

Re: [PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Eric Blake
On 09/08/2010 03:17 PM, Jim Meyering wrote: +# Whether to reject a shell for which "set -x" corrupts stderr. +strict_=yes + +gl_set_x_corrupts_stderr_='$( (exec 3>&1; set -x; P=1 true 2>&3) 2> /dev/null)' + gl_shell_test_script_=' test $(echo y) = y || exit 1 -test -z "$( (exec 3>&1; set -

Re: [PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Jim Meyering
Eric Blake wrote: > On 09/08/2010 03:17 PM, Jim Meyering wrote: >> >> +# Whether to reject a shell for which "set -x" corrupts stderr. >> +strict_=yes >> + >> +gl_set_x_corrupts_stderr_='$( (exec 3>&1; set -x; P=1 true 2>&3) 2> >> /dev/null)' >> + >> gl_shell_test_script_=' >> test $(echo y)

Re: [PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Bruno Haible
Hi Jim, > They make it so with "set -x", environment settings > appear in stderr output. For example, this command: > /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err > prints "P=1" on those two systems: This test disqualifies also 'ksh', which is considered the "good" shell on Sola

Re: [PATCH] init.sh: disqualify shells for which set -x corrupts stderr

2010-09-08 Thread Bruce Korb
For your possible amusement, I managed to induce Chet to augment BASH with BASH_XTRACEFD. It surely won't help here, but it will make BASH debugging a lot easier. (I had to debug scripts that knew that if there were *any* output to stderr, then the test had to have failed. And there were enough mo

Re: failure to build due to ignoring fwrite() result

2010-09-08 Thread Karl Berry
Here's a proposed rewrite that tries to take all the comments in mind, while trying to improve the prose a bit. FWIW, this standards.texi change looked good to me. I sent it to rms. Thanks to all.

cloning gnulib from behind a firewall

2010-09-08 Thread Ben Abbott
I'd like to clone gnulib from behind my company's firewall. The ports for git and cvs are closed, so I tried http, and obtained the error below. export http_proxy=... git clone http://git.savannah.gnu.org/gnulib.git Cloning into gnulib... fatal: http://git.savanna

Re: cloning gnulib from behind a firewall

2010-09-08 Thread Eric Blake
On 09/08/2010 01:00 PM, Ben Abbott wrote: I'd like to clone gnulib from behind my company's firewall. The ports for git and cvs are closed, so I tried http, and obtained the error below. export http_proxy=... git clone http://git.savannah.gnu.org/gnulib.git Cloning into

Re: cloning gnulib from behind a firewall

2010-09-08 Thread Mike Detwiler
Hi Ben, I am able to clone Savannah's projects via http. The general format is http://git.sv.gnu.org/r/.git. So, git clone http://git.sv.gnu.org/r/gnulib.git should work for you. FYI, you can also browse the source via gitweb: http://git.savannah.gnu.org/gitweb/ Hope this helps, -Mike On We