Portability: use printf instead echo for set -o bsdecho