Closed gsklee closed 5 years ago
@anordal Any explanations?
It should always be possible to replace echo
with printf
. I only rewrote the guide's examples in printf
where necessary according to itself – I admit it was inconsistent. I also tried to de-emphasize the hysteria and focus on the why part (5f425ee47).
Are you wondering why I didn't change the rest?
In the cases where it doesn't matter, I have two concerns:
Thanks for the detailed explanation 👍
@anordal In echo → printf, the guide is trying to make a case that
printf
should be preferred overecho
; however in a lot of other places within the guide (eg. Corollary: Use while loops to iterate strings and command output),echo
is being used extensively. Do we want to consolidate the guide and rewrite examples inprintf
wherever possible?