Date: Tue, 6 Sep 2005 12:50:42 +0200 From: "albi@scii.nl" <albi@scii.nl> To: freebsd-questions@freebsd.org Subject: Re: removing file '-D' Message-ID: <20050906125042.7a24bfeb.albi@scii.nl> In-Reply-To: <431D72E5.8060800@locolomo.org> References: <431D72E5.8060800@locolomo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 06 Sep 2005 12:43:49 +0200 Erik Norgaard <norgaard@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050906125042.7a24bfeb.albi>