-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
The manpage for cp/ucp shows the --recursive and -r options for recursive copying, but does not mention -R. All of the following work exactly as expected after running rm -rf directory elsewhere && mkdir directory:
$ "$(brew --prefix uutils-coreutils)"/libexec/uubin/cp -r directory elsewhere
$ ucp -r directory elsewhere
$ ucp --recursive directory elsewhere
$ "$(brew --prefix uutils-coreutils)"/libexec/uubin/cp --recursive directory elsewhere
$ "$(brew --prefix uutils-coreutils)"/libexec/uubin/cp -R directory elsewhere
$ ucp -R directory elsewherebut the last two lines use -R, which is undocumented in the manpage, and is the only POSIX-guaranteed option for recursive copying.