Re: [ILUG] Deleting a file with a "--" prefix

From: kevin lyda (kevin at domain suberic.net)
Date: Wed 23 May 2001 - 10:41:29 IST


On Wed, May 23, 2001 at 09:29:07AM +0100, Colm Buckley wrote:
> Short solution: rm ./--preserve-permissions
>
> Longer, more generalised solution : rm -- --preserve-permissions

no, that's specific to gnu utilities and newer utils from other sources.
./-weird.name works with any utility. your initial one was the more
general solution as it will work on everything from v7 on up, and with
every app that wants a filename on the command line.

and the / dir should have a . dir. if not, just use /-weird.name.

kevin

-- 
kevin at domain suberic.net          "Maybe one day downtrodden poo-eaters will
fork()'ed on 37058400       get a fair shake in Savage Love, but it's
meatspace place: home       not going to be today."
http://suberic.net/~kevin                 --dan savage, "savage love"


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:26 GMT