removing file '-D'
albi at scii.nl
albi at scii.nl
Tue Sep 6 03:50:47 PDT 2005
On Tue, 06 Sep 2005 12:43:49 +0200
Erik Norgaard <norgaard at locolomo.org> wrote:
> using dvrecv (dvts) with the documented -D option did not indicate the
> desired device but rather created a file with the name -D. Now I can't
> get rid of it, using csh, bash or sh:
>
> Specifying:
>
> $ rm -D
> rm: illegal option -- D
> $ rm "-D"
> rm: illegal option -- D
> $ rm '-D'
> rm: illegal option -- D
> $ rm \-D
> rm: illegal option -- D
> $ rm '\-D'
> rm: \-D: No such file or directory
> $ rm "\-D"
> rm: \-D: No such file or directory
are you sure it's not " -D" (with space) ?
i just created a file called -D and this removes it :
rm -- "-D"
(and you can also try midnight commander in those cases :)
--
grtjs, albi
gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import
More information about the freebsd-questions
mailing list