This isn't a question of printf vs echo.
I'm trying to edit my script to use printf exclusively, and I have the following in my code:
echo >&2 'Failed to initialize REPL repo. Please report this!'
If I replace echo with printf, will it introduce any side effects (because of the >&2)?
printf >&2 'Failed to initialize REPL repo. Please report this!\n'
I couldn't find an answer in askubuntu. Either there isn't one or the search is ignoring the > and & characters.