From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2002-01-07 08:00:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.kjsl.com!news.usenet2.org!citadel.in.taronga.com!not-for-mail From: peter@taronga.com (Peter da Silva) Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: 7 Jan 2002 15:49:41 GMT Organization: TSS Inc. Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> NNTP-Posting-Host: citadel.in.taronga.com X-Trace: citadel.in.taronga.com 1010418581 98018 10.0.0.43 (7 Jan 2002 15:49:41 GMT) X-Complaints-To: usenet@taronga.com NNTP-Posting-Date: 7 Jan 2002 15:49:41 GMT X-Newsreader: trn 4.0-test72 (19 April 1999) Xref: archiver1.google.com comp.os.vms:58762 alt.sys.pdp10:9202 comp.sys.dec:11113 In article , Bob Koehler wrote: > Same here, I've got several ksh scripts that take file name > parameters, but no matter how much I quote the original I can't > get past the spaces in all my Mac folder names. Either take your arguments one by one like this: while [ ".$1" != "."] do frob "$1" shift done Or use this trick: for i in ${1+"$@"} do frob "$i" done I tend to use the first if I'm going to be parsing multi-word options, and the latter otherwise. -- Rev. Peter da Silva, ULC. WWFD? "Be conservative in what you generate, and liberal in what you accept" -- Matthew 10:16 (l.trans)