FreeBSD Bugzilla – Attachment 141271 Details for
Bug 188008
[patch] rm(1): Better(?) rm -If behavior (and other combination between -I, -i, and -f)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.36 KB, created by
Edho Arief
on 2014-03-27 04:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Edho Arief
Created:
2014-03-27 04:30:00 UTC
Size:
1.36 KB
patch
obsolete
>Index: rm.1 >=================================================================== >--- rm.1 (revision 263791) >+++ rm.1 (working copy) >@@ -68,6 +68,8 @@ > .Fl f > option overrides any previous > .Fl i >+and >+.Fl I > options. > .It Fl i > Request confirmation before attempting to remove each file, regardless of >@@ -77,6 +79,8 @@ > .Fl i > option overrides any previous > .Fl f >+and >+.Fl I > options. > .It Fl I > Request confirmation once if more than three files are being removed or if a >@@ -84,6 +88,13 @@ > This is a far less intrusive option than > .Fl i > yet provides almost the same level of protection against mistakes. >+The >+.Fl I >+option overrides any previous >+.Fl f >+and >+.Fl i >+options. > .It Fl P > Overwrite regular files before deleting them. > Files are overwritten three times, first with the byte pattern 0xff, >Index: rm.c >=================================================================== >--- rm.c (revision 263791) >+++ rm.c (working copy) >@@ -115,12 +115,16 @@ > case 'f': > fflag = 1; > iflag = 0; >+ Iflag = 0; > break; > case 'i': > fflag = 0; > iflag = 1; >+ Iflag = 0; > break; > case 'I': >+ fflag = 0; >+ iflag = 0; > Iflag = 1; > break; > case 'P': >@@ -629,7 +633,7 @@ > { > > (void)fprintf(stderr, "%s\n%s\n", >- "usage: rm [-f | -i] [-dIPRrvWx] file ...", >+ "usage: rm [-f | -i | -I] [-dPRrvWx] file ...", > " unlink file"); > exit(EX_USAGE); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 188008
: 141271