Date: Fri, 9 Apr 2004 10:40:22 -0400 From: "Troy Settle" <troy@psknet.com> To: <freebsd-questions@freebsd.org> Subject: RE: How can I remove this file ? Message-ID: <E1BBxBE-0004oN-EH@psknet.com> In-Reply-To: <4076ACF3.5030203@newssun.med.miami.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: David Piniella > Sent: Friday, April 09, 2004 10:02 AM > > > I've never run across that. > > % cd tmp > % ls > % touch - > % ls > - > % rm - > % ls > % > > although if it was giving you trouble, I suppose you could do a > rm ./\- > > -- > David Piniella > University of Miami > David, I think you missed the part where the hypen was the first character of the filename, not the only character. $ touch -file touch: illegal option -- i usage: touch [-acfm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] file ... $ touch -- -file $ rm -file rm: illegal option -- l usage: rm [-f | -i] [-dPRrvW] file ... unlink file $ rm -- -file -- Troy Settle Pulaski Networks http://www.psknet.com 866.477.5638
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BBxBE-0004oN-EH>