Funny file names

foss foss at ihuxe.UUCP
Wed May 15 11:24:10 AEST 1985


> By mistake I created a file called ^G (ctl-G) from readnews.  When
> went back to the csh, I did an `ls' and it told me that I had file
> called `?'.  When I tried to `rm ?' it wouldn't go away.  However,
> I tried `rm ^G', that worked.  I think this is kind of strange.
> 
> What happens if one (by mistake) creates a file called `ctl-foo' and one
> didn't know that this was happening.  The next time they did an `ls'
> of that directory they'd get a `?' and it would be impossible to remove
> because they don't know the name.
> 
> Can someone explain this to me?
> 
> -- 

If all else fails, you can always use:

rm -i *

which will interact with the terminal before removing files.

-----------



More information about the Comp.unix mailing list