Korn Shell limitation/bug
UW West
nvosd at nwnexus.WA.COM
Wed Oct 31 06:05:13 AEST 1990
We're running a Sequent box here using Dynix 2.0v2, and are seeing an
"interesting" problem with the korn shell. The following script fails
on the 12th iteration of the inner loop (fails = the script just stops).
counter=0
x=0
while [ $x -lt 100 ]
do
x=`expr $x + 1`
echo "$x "
done |
{
while read field1
do
counter=`expr $counter + 1`
echo "line $counter"
rm -f 1
rm -f 2
rm -f 3
rm -f 4
rm -f 5
done
}
Here is the result of a "what /bin/ksh":
/bin/ksh:
Version 11/16/88
yp_match.c 1.1 86/02/03 Copyr 1985 Sun Micro
yp_bind.c 1.1 86/02/03 Copyr 1985 Sun Micro
pmap_clnt.c 1.1 86/02/03 Copyr 1984 Sun Micro
clnt_perror.c 1.1 85/05/30 Copyr 1984 Sun Micro
ypprot_err.c 1.1 86/02/03 Copyr 1985 Sun Micro
ypv1_xdr.c 1.1 86/02/03 Copyr 1985 Sun Micro
ypxdr.c 1.1 86/02/03 Copyr 1985 Sun Micro
clnt_udp.c 1.1 86/02/03 Copyr 1984 Sun Micro
auth_none.c 1.1 86/02/03 Copyr 1984 Sun Micro
pmap_getport.c 1.1 86/03/02 Copyr 1984 Sun Micro
pmap_prot.c 1.1 85/05/30 Copyr 1984 Sun Micro
rpc_prot.c 1.1 86/02/03 Copyr 1984 Sun Micro
xdr.c 1.1 86/02/03 Copyr 1984 Sun Micro
xdr_mem.c 1.1 85/05/30 Copyr 1984 Sun Micro
xdr_reference.c 1.1 85/05/30 Copyr 1984 Sun Micro
the same script works fine under PTX, and also works on a Pyramid
with OSx.
Anyone got any ideas?
Thanks!
Clay Jackson - US WEST NewVector Group
{...uunet!nwnexus!nvosd | ..uunet!uswnvg!cjackso | clayj at cjsysv.wa.com }
More information about the Comp.unix.shell
mailing list