3 ms·
For those using zsh, you can get better quoting (and only when necessary, and handles non-printable characters and newlines better) than using printf. run() {
by ebeip90 5y ago
For those using zsh, you can get better quoting (and only when necessary, and handles non-printable characters and newlines better) than using printf.
run() {
if dry; then
echo "${(q-)@}"
else
"$@"
fi
}