zsh:mvln(): Make variables local

This commit is contained in:
2023-02-09 16:57:14 +01:00
parent fc04a6a682
commit 69f8bd8631

View File

@@ -356,7 +356,7 @@ mvln() {
return 1
fi
reg=0
local file reg=0
for file in "${@[1,-2]}"; do
# If the target is a directory, `file` will end up in it
# NOTE: We need absolute paths here for executions like `$0 foo/bar .`