]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: rm --help: mention that '.' or '..' are rejected
authorPádraig Brady <P@draigBrady.com>
Mon, 25 Sep 2023 13:46:48 +0000 (14:46 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 25 Sep 2023 14:26:31 +0000 (15:26 +0100)
* src/rm.c (usage): State that '.' or '..' are rejected.

src/rm.c

index 523f148f537a216519aedc0e61b624b7909f1b8e..61beef0612379d3ac9ee39c9f754d7bd64cc397d 100644 (file)
--- a/src/rm.c
+++ b/src/rm.c
@@ -164,6 +164,11 @@ Remove (unlink) the FILE(s).\n\
 \n\
 By default, rm does not remove directories.  Use the --recursive (-r or -R)\n\
 option to remove each listed directory, too, along with all of its contents.\n\
+"), stdout);
+      fputs (_("\
+\n\
+Any attempt to remove a file whose last file name component is '.' or '..'\n\
+is rejected with a diagnostic.\n\
 "), stdout);
       printf (_("\
 \n\