From: Pádraig Brady Date: Mon, 25 Sep 2023 13:46:48 +0000 (+0100) Subject: doc: rm --help: mention that '.' or '..' are rejected X-Git-Tag: v9.5~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c4670483238147850f3ae65e94d61dc0f9c678c;p=thirdparty%2Fcoreutils.git doc: rm --help: mention that '.' or '..' are rejected * src/rm.c (usage): State that '.' or '..' are rejected. --- 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\