Browse code

Merge pull request #30130 from ijc25/clarify-cp-docs

Clarify `cp` documentation behaviour with trailing "/."
(cherry picked from commit 8b7ba17d33d6af5fda28e86f2aa357be493f2cb8)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Vincent Demeester authored on 2017/01/14 00:16:03
Showing 2 changed files
... ...
@@ -75,9 +75,9 @@ argument of `DEST_PATH`, the behavior is as follows:
75 75
     - `DEST_PATH` exists and is a file
76 76
         - Error condition: cannot copy a directory to a file
77 77
     - `DEST_PATH` exists and is a directory
78
-        - `SRC_PATH` does not end with `/.`
78
+        - `SRC_PATH` does not end with `/.` (that is: _slash_ followed by _dot_)
79 79
             - the source directory is copied into this directory
80
-        - `SRC_PATH` does end with `/.`
80
+        - `SRC_PATH` does end with `/.` (that is: _slash_ followed by _dot_)
81 81
             - the *content* of the source directory is copied into this
82 82
               directory
83 83
 
... ...
@@ -59,9 +59,9 @@ argument of `DEST_PATH`, the behavior is as follows:
59 59
     - `DEST_PATH` exists and is a file
60 60
         - Error condition: cannot copy a directory to a file
61 61
     - `DEST_PATH` exists and is a directory
62
-        - `SRC_PATH` does not end with `/.`
62
+        - `SRC_PATH` does not end with `/.` (that is: _slash_ followed by _dot_)
63 63
             - the source directory is copied into this directory
64
-        - `SRC_PATH` does end with `/.`
64
+        - `SRC_PATH` does end with `/.` (that is: _slash_ followed by _dot_)
65 65
             - the *content* of the source directory is copied into this
66 66
               directory
67 67