From 84e957d30082511664bb98ce9ee2b76b4f62ede5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 1 Nov 1999 16:00:40 +0000 Subject: [PATCH] (usage): Warn about mixing use of `-r' with FIFOs and other special files like /dev/zero. --- src/cp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cp.c b/src/cp.c index 3e5773b4fe..f85ef234d6 100644 --- a/src/cp.c +++ b/src/cp.c @@ -145,6 +145,8 @@ Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n\ -p, --preserve preserve file attributes if possible\n\ -P, --parents append source path to DIRECTORY\n\ -r copy recursively, non-directories as files\n\ + WARNING: use -R instead when you might copy\n\ + special files like FIFOs or /dev/zero\n\ --sparse=WHEN control creation of sparse files\n\ -R, --recursive copy directories recursively\n\ -s, --symbolic-link make symbolic links instead of copying\n\ -- 2.47.3