currently, there's a couple exit paths where the tmpfile doesn't get
cleaned up.
exit_status=0
-dst_file=$(mktemp "$TMPDIR/.nnnXXXXXX")
-
if nnn_use_selection "Rename"; then
# shellcheck disable=SC2154
arr=$(tr '\0' '\n' < "$selection")
lines=$(printf "%s\n" "$arr" | wc -l)
width=${#lines}
+dst_file=$(mktemp "$TMPDIR/.nnnXXXXXX")
+trap 'rm -f "$dst_file"' EXIT
+
printf "%s" "$arr" | awk '{printf("%'"${width}"'d %s\n", NR, $0)}' > "$dst_file"
items=("~")
$RM_UTIL "$item"
done
-rm "$dst_file"
exit $exit_status