[tex-live] Re: TeX Live UNIX shell scripts

Nelson H. F. Beebe beebe@math.utah.edu
Tue, 16 Apr 2002 11:27:11 -0600 (MDT)


Thomas Esser <te@informatik.uni-hannover.de> writes on Tue, 16 Apr 2002
18:17:29 +0200:

>> Does anyone know a system / platforms where /bin/sh has this bug?
>> I guess that a broken system reports 1 for the following code:
>>   /bin/sh -c 'set x "$@"; shift; echo $#' sh

I just tried it on 16+ platforms: on all but two (including the flawed
Apple Darwin (== MacOS X) /bin/sh), it reported 0.  However, on
Compaq/DEC Alpha OSF/1 4.0 and 5.0, it reports 1.

-------------------------------------------------------------------------------
- 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: beebe@math.utah.edu  -
- Department of Mathematics, 110 LCB        beebe@acm.org  beebe@computer.org -
- 155 S 1400 E RM 233                       beebe@ieee.org                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------