From 0c4670483238147850f3ae65e94d61dc0f9c678c Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Mon, 25 Sep 2023 14:46:48 +0100 Subject: [PATCH] doc: rm --help: mention that '.' or '..' are rejected * src/rm.c (usage): State that '.' or '..' are rejected. --- src/rm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rm.c b/src/rm.c index 523f148f53..61beef0612 100644 --- 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\ -- 2.47.2