diff options
author | Matthew Martin <phy1729@gmail.com> | 2019-03-20 23:07:53 -0500 |
---|---|---|
committer | Matthew Martin <phy1729@gmail.com> | 2019-03-21 22:04:55 -0500 |
commit | 5267bdc4ef91c1609bf0499861cc46f63e9e5784 (patch) | |
tree | a80889804fce3fc6717b65d1b8e7aa512bb996ae /Doc/Zsh/mod_files.yo | |
parent | 9b267ff1ebd02177613c25ba8e032fdcc4b8d349 (diff) | |
download | zsh-5267bdc4ef91c1609bf0499861cc46f63e9e5784.tar.gz zsh-5267bdc4ef91c1609bf0499861cc46f63e9e5784.tar.xz zsh-5267bdc4ef91c1609bf0499861cc46f63e9e5784.zip |
44153: rm: Accept -R as equivalent to -r
Diffstat (limited to 'Doc/Zsh/mod_files.yo')
-rw-r--r-- | Doc/Zsh/mod_files.yo | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/Zsh/mod_files.yo b/Doc/Zsh/mod_files.yo index 3cf7b61e3..9f9634c86 100644 --- a/Doc/Zsh/mod_files.yo +++ b/Doc/Zsh/mod_files.yo @@ -144,15 +144,15 @@ fall back on copying and removing files; if this behaviour is desired, use tt(cp) and tt(rm) manually. This may change in a future version. ) findex(rm) -item(tt(rm) [ tt(-dfirs) ] var(filename) ...)( +item(tt(rm) [ tt(-dfiRrs) ] var(filename) ...)( Removes files and directories specified. -Normally, tt(rm) will not remove directories (except with the tt(-r) -option). The tt(-d) option causes tt(rm) to try removing directories +Normally, tt(rm) will not remove directories (except with the tt(-R) or tt(-r) +options). The tt(-d) option causes tt(rm) to try removing directories with tt(unlink) (see manref(unlink)(2)), the same method used for files. Typically only the super-user can actually succeed in unlinking directories in this way. -tt(-d) takes precedence over tt(-r). +tt(-d) takes precedence over tt(-R) and tt(-r). By default, the user will be queried before removing any file that the user cannot write to, but writable files will be silently @@ -162,9 +162,9 @@ any files. The tt(-f) option causes files to be silently deleted, without querying, and suppresses all error indications. tt(-f) takes precedence. -The tt(-r) option causes tt(rm) to recursively descend into directories, -deleting all files in the directory before removing the directory with -the tt(rmdir) system call (see manref(rmdir)(2)). +The tt(-R) and tt(-r) options cause tt(rm) to recursively descend into +directories, deleting all files in the directory before removing the directory +with the tt(rmdir) system call (see manref(rmdir)(2)). The tt(-s) option is a zsh extension to tt(rm) functionality. It enables paranoid behaviour, intended to avoid common security problems involving |