Path: utzoo!attcan!uunet!husc6!necntc!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: comp.unix.questions Subject: Re: bad filenames Message-ID: <104@lakart.UUCP> Date: 12 May 88 14:07:59 GMT References: <10777@steinmetz.ge.com> Organization: Lake - The systems people Lines: 19 From article <10777@steinmetz.ge.com>, by davidsen@steinmetz.ge.com (William E. Davidsen Jr): > Is there a better way to get rid of a file with a '/' in the name > than diddling the directory? "rm -i *" sure doesn't work here! Since this is a UNIX (tm) group I'm going to ask "how was a file with a '/' in it's name created?" I *_CANT_* do it here (BSD 4.3). And regarding it's removal, "rm -i *" will fail because * expands, and rm gets a name with a '/' in it, so unlink(2) starts looking for sub- directories. Even an "rm -ir ." may well fail, because the string that gets handed to unlink(2) (and presumably namei()) still has a '/' in it. (If this is a SYS V problem then some of what I have said may be wrong - I have never worked with SYS V - just BSD 4.X) -- dg@lakart.UUCP - David Goodenough +---+ | +-+-+ ....... !harvard!adelie!cfisun!lakart!dg +-+-+ | +---+