Hacker News new | ask | show | jobs
by ebeip90 1858 days 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 }