summaryrefslogtreecommitdiffstats
path: root/misc-utils/rename.1
diff options
context:
space:
mode:
authorSami Kerola2014-06-28 19:42:49 +0200
committerSami Kerola2014-07-18 19:34:15 +0200
commitd6cf9e1669468f12a3d65edd3bf5a2bf2a2a5bd5 (patch)
treee8c02da689f368ae81af7ab4cca2db39ac5db73b /misc-utils/rename.1
parenttests: add rename(1) checks (diff)
downloadkernel-qcow2-util-linux-d6cf9e1669468f12a3d65edd3bf5a2bf2a2a5bd5.tar.gz
kernel-qcow2-util-linux-d6cf9e1669468f12a3d65edd3bf5a2bf2a2a5bd5.tar.xz
kernel-qcow2-util-linux-d6cf9e1669468f12a3d65edd3bf5a2bf2a2a5bd5.zip
rename: continue despite something failed
Try to do all file operations even when one or some of them fail, and use exit value to inform what happen. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/rename.1')
-rw-r--r--misc-utils/rename.120
1 files changed, 20 insertions, 0 deletions
diff --git a/misc-utils/rename.1 b/misc-utils/rename.1
index 470595752..30d9c710a 100644
--- a/misc-utils/rename.1
+++ b/misc-utils/rename.1
@@ -55,6 +55,26 @@ the command will perform the action without any questions. For example, the
result can be quite drastic when the command is run as root in the /lib
directory. Always make a backup before running the command, unless you truly
know what you are doing.
+.SH "EXIT STATUS"
+.RS
+.PD 0
+.TP
+.B 0
+all requested rename operations were successful
+.TP
+.B 1
+all rename operations failed
+.TP
+.B 2
+some rename operations failed
+.TP
+.B 4
+nothing was renamed
+.TP
+.B 64
+unanticipated error occurred
+.PD
+.RE
.SH "SEE ALSO"
.BR mv (1)
.SH AVAILABILITY