Re:Chrome zero-day released on GitHub – fixed on V8 but stil...
by jwilk on Tuesday April 13, 2021 @08:47AM
(#26791443)
I guess the newline that echo without -n would add doesn't matter that much.
OTOH -e, depending on your shell, is either necessary (e.g. bash), or unnecessary but harmless (e.g. zsh) or insufficient (e.g. dash). If you want to print binary stuff portably, you need to use printf(1).
OTOH -e, depending on your shell, is either necessary (e.g. bash), or unnecessary but harmless (e.g. zsh) or insufficient (e.g. dash). If you want to print binary stuff portably, you need to use printf(1).
(Shameless plug: you can use https://github.com/jwilk/printfify to generate printf commands for binary files.)
In this case, base64 encoding is much more efficient: