aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbulkrename3
1 files changed, 1 insertions, 2 deletions
diff --git a/bulkrename b/bulkrename
index d86f7a8..c011082 100755
--- a/bulkrename
+++ b/bulkrename
@@ -5,8 +5,7 @@
set -e -u
if [ $# -ne 0 ] ; then
- { for i in "$@" ; do printf "%s\n" "$i" ; done } | "$0"
- exit
+ { for i in "$@" ; do printf "%s\n" "$i" ; done } | exec "$0"
fi
EDITOR="${EDITOR:-vi}"