GNU bug report logs -
#9308
rm -I vs. rm --interactive=once
Previous Next
Reported by: drudolf <at> phrozenbyte.de
Date: Tue, 16 Aug 2011 00:06:01 UTC
Severity: normal
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
This bug is simple enough that it took only a one-liner to fix it. I
believe it makes sense, because (as correctly pointed out by Daniel),
rm's manpage explicitly mentions that -I and --interactive=once should
be the same.
Tested here, without failures. I already have commit access to the
GDB/binutils repo, so if you want to just extend my commit rights to
commit to the coreutils, that's fine too.
Thanks,
--
Sergio
2013-09-23 Sergio Durigan Junior <sergiodj <at> sergiodj.net>
* src/rm.c (main): Option "-I" should be markes as "sometimes
interactive" (RMI_SOMETIMES).
diff --git a/src/rm.c b/src/rm.c
index 4b87c12..7a51eef 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -244,7 +244,7 @@ main (int argc, char **argv)
break;
case 'I':
- x.interactive = RMI_NEVER;
+ x.interactive = RMI_SOMETIMES;
x.ignore_missing_files = false;
prompt_once = true;
break;
This bug report was last modified 11 years and 244 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.