Path: utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!travis!brad From: brad@SSD.CSD.HARRIS.COM (Brad Appleton) Newsgroups: comp.unix.shell Subject: Re: Problem with sh/ksh quoting Message-ID: <1453@travis.csd.harris.com> Date: 2 Nov 90 20:16:26 GMT References: <3726@idunno.Princeton.EDU> <4101@awdprime.UUCP> <1452@travis.csd.harris.com> Sender: news@travis.csd.harris.com Distribution: na Organization: Harris Computers Systems Division, Fort Lauderdale,FL Lines: 18 In article <1452@travis.csd.harris.com> brad@SSD.CSD.HARRIS.COM (Brad Appleton) writes: >Like I said before - if you have the Korn shell, this is all *very* simple >if you create an array using "set -A" (or "set +A") and iterate your for-loop >based on "$array[@}" (the quotes are needed here). If you are using the OOPS - bad typing! that should read : "${array[@]}" and NOT "$array[@}" for obvious reasons!!! ______________________ "And miles to go before I sleep." ______________________ Brad Appleton brad@ssd.csd.harris.com Harris Computer Systems uunet!hcx1!brad Fort Lauderdale, FL USA ~~~~~~~~~~~~~~~~~~~~ Disclaimer: I said it, not my company! ~~~~~~~~~~~~~~~~~~~