--- Begin Message ---
Subject: |
Re: guile-1.5.6: some build comments |
Date: |
Mon, 1 Apr 2002 07:58:53 -0700 (MST) |
Testing of the latest guile alpha release turned up a problem on
Compaq/DEC OSF/1, to which Neil Jerram responded:
>> My guess is that, on this OS [Compaq/DEC OSF/1], the shell
>> processes "$@" so that it ends up as a single, empty string
>> argument, even when no arguments were actually supplied. ...
I made shell scripts of your simple tests, one for sh, one for ksh,
and one for bash, and then ran them on these systems:
AMD Athlon GNU/Linux version 2.4.2-2smp (Red Hat 7.1)
Apple PowerPC G3 267MHz GNU/Linux 2.2.18-4hpmac (Red Hat Linux/PPC 2000
Q4)
Apple PowerPC G4 267MHz Darwin 5.3
Compaq Alpha Sierra OSF/1 5.0
Compaq/DEC Alpha OSF/1 4.0F
DEC Alpha GNU/Linux 2.2.19-6.2.1 (Red Hat 6.2)
HP 9000/712 HP-UX 10.20
HP/Intel IA-64 GNU/Linux 2.2.17-14smp (Red Hat 6.2) [via HP
NUE emulator on IA-32]
IBM PowerPC AIX 4.2
IBM SP/2 AIX 4.3.2.0
Intel Pentium II FreeBSD 4.4-RELEASE #0
Intel Pentium III GNU/Linux 2.2.19-6.2.10smp (Red Hat 6.2)
Intel Pentium III GNU/Linux 2.4.9-13smp (Red Hat 7.2)
SGI Origin 200 IRIX 6.5
Sun SPARC GNU/Linux 2.2.19-6.2.1 (Red Hat 6.2)
Sun SPARC Solaris 2.7
Sun SPARC Solaris 2.8
Either bash or ksh was unavailable on at least two of these systems
(Alpha GNU/Linux, and HP-UX).
Here are the test scripts:
% cat bug.sh
#! /bin/sh
set -
echo $#
set - "$@"
echo $#
% cat bug2.sh
#! /bin/ksh
set -
echo $#
set - "$@"
echo $#
% cat bug3.sh
#! /usr/local/bin/bash
set -
echo $#
set - "$@"
echo $#
All systems EXCEPT OSF/1 4.0 and 5.0 produce
0
0
for the output. On those two systems, and only with sh, not with ksh
or bash, I get
0
1
ksh and bash on OSF/1 both produce the 0\n0 expected output.
So, we have uncovered a new sh bug, or misfeature, on Compaq/DEC
OSF/1! sh has no version option or variable, but a grep of the
/bin/sh executable on OSF/1 4.0 turns up these RCS dates:
1995/02/14 1995/03/20 1995/04/26 1995/07/18 1995/09/06 1996/01/16
1996/09/27 1997/06/04 1997/06/17 1997/07/22 1998/10/22
The same action on OSF/1 shows these dates:
1995/02/14 1995/03/20 1996/04/30 1997/04/03 1997/06/04 1997/06/17
1997/08/11 1997/11/07 1998/04/28 1998/10/22 1998/11/24 1999/02/12
1999/05/13
P.S. I'm cc'ing Arnold Robbins on this one, since he's the author of
the forthcoming O'Reilly book on ksh, and also of their UNIX in a
Nutshell.
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- Center for Scientific Computing FAX: +1 801 585 1640, +1 801 581 4148 -
- University of Utah Internet e-mail: address@hidden -
- Department of Mathematics, 110 LCB address@hidden address@hidden -
- 155 S 1400 E RM 233 address@hidden -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe -
-------------------------------------------------------------------------------
--- End Message ---