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: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2002-01-07 10:05:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!news.binc.net!koehler From: koehler@encompasserve.org (Bob Koehler) Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: 7 Jan 2002 12:05:32 -0600 Organization: Encompasserve Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C338089.1C12E6FA@trailing-edge.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1010426736 6688 192.135.80.34 (7 Jan 2002 18:05:36 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Mon, 7 Jan 2002 18:05:36 +0000 (UTC) Xref: archiver1.google.com comp.os.vms:58801 alt.sys.pdp10:9214 comp.sys.dec:11125 In article , "JD" writes: > > "Bob Koehler" wrote in message news:Fs8N42DvlVjf@eisner.encompasserve.org... >> In article , rivie@cougar.no.domain writes: >> >> > I'm probably simply dense, but I've never found a reasonable way of >> > dealing with filenames that have spaces in Unix. Just when I think I've >> > got it figured out, something will break. >> >> 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. >> > Hmmm... I haven't run into a situation that I couldn't handle like that... Then maybe you know something I don't. I've got this little ksh function which emulates some features of DCL copy that the shell won't do for me on one line. But I can't "copy a\ a.c b", and I've tried all kinds of escape and quotes with the file name a\ a.c function copy { i=`echo $1 | awk -F. '{print $2}'` j=`echo $2 | awk -F. '{print $2}'` k=`echo $2 | awk -F. '{print $1}'` if [ "$j" = "" ] then to=$k.$i else to=$2 fi cp $1 $to }