Xref: utzoo comp.sys.sequent:750 comp.unix.shell:784 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!uw-beaver!sumax!thebes!happym!nwnexus!nvosd From: nvosd@nwnexus.WA.COM (UW West ) Newsgroups: comp.sys.sequent,comp.unix.shell Subject: Korn Shell limitation/bug Keywords: ksh Korn ATT SYSV Message-ID: <418@nwnexus.WA.COM> Date: 30 Oct 90 19:05:13 GMT Organization: Northwest Nexus Inc.; Seattle, WA Lines: 58 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@cjsysv.wa.com }