Comment

Comment by ebeip90

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 }

parent ebeip90 5 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton