zsh:diffcmds: Quote only once, for real now

This commit is contained in:
2024-03-24 18:22:43 +01:00
parent e5593e1c98
commit 6dd226d305

View File

@@ -689,9 +689,10 @@ diffcmds() {
return 1
fi
# Split and quote special characters
template=("${(q@)@:1:$((i-1))}")
args=("${(q@)@:$((i+1))}")
# Quote special characters and split into arrays
set -- "${(q@)@}"
template=("${@:1:$((i-1))}")
args=("${@:$((i+1))}")
# Unquote standalone pipes
template=("${(@)template/#%\\|/|}")