From 69f8bd8631ed3e4fa4fb717c28510dac3aee8512 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 9 Feb 2023 16:57:14 +0100 Subject: [PATCH] zsh:mvln(): Make variables local --- .config/zsh/zshrc.d/40-functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/zshrc.d/40-functions.zsh b/.config/zsh/zshrc.d/40-functions.zsh index 8819c42..fe2e1db 100644 --- a/.config/zsh/zshrc.d/40-functions.zsh +++ b/.config/zsh/zshrc.d/40-functions.zsh @@ -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 .`