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-06 15:51:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!hub1.nntpserver.com!peer1-sjc1.usenetserver.com!usenetserver.com!newsfeed1.cidera.com!Cidera!iquest!news1.iquest.net!not-for-mail From: "John S. Dyson" Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C338089.1C12E6FA@trailing-edge.com> Subject: Re: historical evidence of what went wrong at DEC MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <8p5_7.1054$Pe5.187142@news1.iquest.net> Date: Sun, 6 Jan 2002 18:51:50 -0500 NNTP-Posting-Host: 198.70.149.90 X-Complaints-To: news-abuse@iquest.net X-Trace: news1.iquest.net 1010361028 198.70.149.90 (Sun, 06 Jan 2002 18:50:28 EST) NNTP-Posting-Date: Sun, 06 Jan 2002 18:50:28 EST Xref: archiver1.google.com comp.os.vms:58663 alt.sys.pdp10:9176 comp.sys.dec:11081 wrote in message news:slrna3ho17.ag8.rivie@cougar.no.domain... > Robert@bonomi.invalid wrote: > > If one has a -recurring- need to mass-rename by arbitrary extension, > > then creating the following routine *once* provides the requisite > > functionality: > > > > #!/bin/csh > > > > foreach file ( *$1 ) > > mv $file `basename $file $1`$2 > > end > > Until it runs into a filename with a space in it or one that starts > with '-'. Happens to me all the time, although it seems to be much > worse on systems which are acting as file servers for Mac folks (there's > one fellow in the office who insists on making frequently used > directories sort to the top of the directory list by tossing a space on > the front of the filename). > There are numerous end cases in both OSes, but when something is as general as UNIX wrt naming, there can always be eccentric situations. Perhaps the most general case requires a bit more care, but using 'wildcards' with naming oddities or not knowing the names of the files being transferred (unless it is a purely bulk transfer) is dangerous NO MATTER THE OS. Blanks in names are best handled with proper quoting, and the use of a production quality shell. There are also tricks like prefixing filenames by './' if it is clear that it is a relative filename, in the most general case. Careful use of the "'" or '"' characters is also best understood when using ksh type shells. Using legacy shells is looking for trouble, not because they are 'bad', but because they make remembering the variations more difficult. I tend to limit myself to 'Bourne shell', but expand to 'Korn shell' when I need to. This is especially good now since Korn shell is available in source form. Frankly, these are relatively non-issues, since there are people, like me, who have had TOO MUCH zeal from both standpoints (both the DEC and UNIX ways), and frankly, I find the UNIX way to be more consistant. It can bite you (and has bitten me), but so can the DEC way. One nice thing that has happened in NT recently is the ability to mount filesystems below the root, so that everything is more consistantly named. It is probably true that VMS has added that feature (I don't really know), but is one thing that adds consistancy to the naming. I don't see that filesystem namespace segmentation is helpful at all. This is one of the 'nits' that has bothered me when playing with the DEC10 emulators... BTW, it is WONDERFUL to play with TOPS10 again, and then look at it with many more years of experience and exposure to other kinds of software!!! John