[Gllug] help deleting file
Nix
nix at esperi.org.uk
Sat Feb 18 15:17:43 UTC 2006
On Fri, 17 Feb 2006, dylan at dylan.me.uk stated:
> On Friday 17 February 2006 19:26, salsaman wrote:
>> rm: invalid option -- =
>> Try `rm --help' for more information.
>>
>>
>> How can I delete this file ?
>
> enclose the filename in double quotes:
That can't work: the shell strips the quotes, but it's *rm itself*
that looks at the resutling arguments and decides that those prepended
with a dash are switches.
No shell-level quoting tricks can change this: "" or '' are useless.
(The correct solution, as others have posted, is --, which is
interpreted by rm.)
--
`... follow the bouncing internment camps.' --- Peter da Silva
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list