Path: utzoo!attcan!uunet!munnari!vuwcomp!dsiramd!csnz!paul From: paul@csnz.nz (Paul Gillingwater) Newsgroups: comp.unix.wizards Subject: Re: Kernel Hacks & Weird Filenames Summary: embedded spaces & non-ASCII printables in filenames Keywords: filenames,space Message-ID: <27@csnz.nz> Date: 16 May 88 10:59:33 GMT References: <13041@brl-adm.ARPA> <4895@chinet.UUCP> <574@minya.UUCP> <24@csnz.nz> <972@cresswell.quintus.UUCP> Reply-To: paul@csnz.UUCP (Paul Gillingwater) Organization: Computer Sciences of New Zealand, Wellington, NZ Lines: 28 In article <972@cresswell.quintus.UUCP> ok@quintus.UUCP (Richard A. O'Keefe) writes: >In article <24@csnz.nz>, paul@csnz.nz (Paul Gillingwater) writes: >> Does that mean that a naive user can make a file with a >> in the name? e.g. "John Doe" or "Job Cost" or other equally >> "intuitively correct" but WRONG names...:-) > >Yes you can make such file names (I often do), and what's wrong with them? OK guys, flame taken! I have known since 1979 that *nix has had the ability to store nearly any characters in file names, and I think it's a good idea - depending upon the shell you're using. Most of us out here are _not_ using windows yet, and must live with [sh,csh,ksh]. The wrongness comes in how the shell treats requests from naive users who don't know about quoted strings or the fact that John Doe is quite different from john doe. What I'd like to see is a more forgiving, or perhaps a 'cleverer' filename parser, that can decide that John Doe (without quotes) is similar to john doe (in .) - and ask the user to confirm (unless they're running in a script) that that's what they meant - "Do what I mean, not what I say...". SCO Xenix seems to go some of the way towards this, but not enough - and the place for it is in the SHELL, not the kernel. -- Paul Gillingwater, Senior Consultant Call my private BBS - Magic Tower, Computer Sciences of New Zealand Ltd NZ +64 4 753561 V21/V23 8N1 24hrs P.O.Box 929, Wellington, NEW ZEALAND Soon: V22/V22bis/Bell 103/Bell 212A Vox: +64 4 846194, Fax: +64 4 843924 "Scott me up, Beamie!"-Lounge Suit Larry