From fa10160c65d612688bcc791708e782713446b75b Mon Sep 17 00:00:00 2001 From: Mike Pritchard Date: Wed, 9 Apr 1997 05:04:43 +0000 Subject: [PATCH] Provide examples of how to remove file names that begin with a dash in non-getopt implementations. E.g.: rm /home/mpp/-filename rm ./-filename Requested by: bde --- bin/rm/rm.1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/rm/rm.1 b/bin/rm/rm.1 index 6a0eedeb8ea0..55f7851b20dd 100644 --- a/bin/rm/rm.1 +++ b/bin/rm/rm.1 @@ -33,7 +33,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)rm.1 8.5 (Berkeley) 12/5/94 -.\" $Id: rm.1,v 1.7 1997/02/22 14:05:26 peter Exp $ +.\" $Id: rm.1,v 1.8 1997/04/08 20:27:48 mpp Exp $ .\" .Dd December 5, 1994 .Dt RM 1 @@ -136,6 +136,13 @@ with a dash .Pq Sq - . For example: .Dl rm -- -filename +The same behavior can be obtained by using an absolute or relative +path reference. For example: +.Dl rm /home/user/-filename +.Dl rm ./-filename +This is useful for commands that do not use +.Xr getopt 3 +to parse the command line arguments. .Sh SEE ALSO .Xr rmdir 1 , .Xr undelete 2 ,