we arent testing `echo -n` here so use printf instead