🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1703

Re: Problem with sh/ksh quoting

#1703
From: Brad Appleton
Date: Fri, 02 Nov 1990 20:16
18 lines
1318 bytes
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! ~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID: <1453@travis.csd.harris.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!travis!brad
References: <3726@idunno.Princeton.EDU> <4101@awdprime.UUCP> <1452@travis.csd.harris.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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