*BSD News Article 80982


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!psgrain!usenet.eel.ufl.edu!tank.news.pipex.net!pipex!news.be.innet.net!INbe.net!news.nl.innet.net!INnl.net!hunter.premier.net!feed1.news.erols.com!howland.erols.net!newspump.sol.net!ddsw1!news.mcs.net!not-for-mail
From: tundra@MCS.COM (Tim Daneliuk)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: dummy question
Date: 16 Oct 1996 17:06:01 -0500
Organization: TundraWare
Lines: 28
Message-ID: <543m89$qo7@Mercury.mcs.com>
References: <53mfdu$1iv@wa4phy.async.com> <543o1d$pe0@newsbr.eunet.fr>
Reply-To: tundra@tundraware.com
NNTP-Posting-Host: mercury.mcs.com

In article <543o1d$pe0@newsbr.eunet.fr>, Frederic MARAND <fgm@osinet.fr> wrote:
>sam@wa4phy.async.com (S.W. Drinkard) wrote:
>
>
>>Ok, I'm not exactly a newbie, but I created a file with a filename of
>>"--remove-files" due to a blunder of the fingers.  SysV would let me 
>>remove it in quotes, or by matching a wildcard patern.  I tried every
>>combination of rm/mv/whatever short of the 45-cal pistol.  How does 
>>*bsd do it?
>Apart from the obvious rm ./--file  some mentioned, and which should
>work, a solution existed on SunOS 4, and that was using the
>little-known command unlink, which passes its argument(s ?) straight
>to an unlink() syscall. That worked, and if *BSD has it too, it should
>work too.
>
>By the way, the symetrical link command allowed a (super)user to
>create links to anything, including cyclic graphs in the file system
>tree that fsck could not remove, and so on. Does it also exist on *BSD
>?
>
>

my hackish solution to this problem is rm -i * answering 'y' only to
the bogus file 8-)
-- 
------------------------------------------------------------------------------
Tim Daneliuk / tundra@tundraware.com
Voicemail/FAX 847.827.1706