Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!crdgw1!sixhub!davidsen From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr) Newsgroups: comp.unix.shell Subject: Re: Ksh-88e shell array question Message-ID: <2691@sixhub.UUCP> Date: 20 Dec 90 03:35:59 GMT References: <9012190340.AA20465@lilac.berkeley.edu> Reply-To: davidsen@sixhub.UUCP (bill davidsen) Organization: *IX Public Access UNIX, Schenectady NY Lines: 25 Well, when you have the final array of values... LIM=${A[*]} n=1 PATH=${A[0]} while [ $n -lt $LIM ]; do PATH=$PATH:${A[$n]} let n=n+1 done - or - PATH=$(echo ${A[*]} | tr " " ":") which is a lot simpler, but probably slower because it runs a process instead of all being in ksh. Let me know if one of these helps. -- bill davidsen - davidsen@sixhub.uucp (uunet!crdgw1!sixhub!davidsen) sysop *IX BBS and Public Access UNIX moderator of comp.binaries.ibm.pc and 80386 mailing list "Stupidity, like virtue, is its own reward" -me