🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sequent
1 messages
1 total messages Started by UW West Tue, 30 Oct 1990 19:05
Korn Shell limitation/bug
#368
Author: UW West
Date: Tue, 30 Oct 1990 19:05
58 lines
1973 bytes
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 }
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads