mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
cb16168c4ea6976b638148758a18992eafdfd235
Handling of escaped by echo is an implementation-defined behaviour according to POSIX: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html "A string to be written to standard output. If the first operand is -n, or if any of the operands contain a <backslash> character, the results are implementation-defined." Practically this makes $ echo '\xFF' behave differently on bash/dash and mksh: bash outputs '\xFF' string of 4 bytes while mksh outputs single 0xFF into stdout. The change is to use "printf '%s\n' '\xFF'" to get consistent behaviour. Reported-by: Jimmy.Jazz@gmx.net Reviewed-by: Matthias Maier Closes: https://bugs.gentoo.org/679168 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
…
…
Description
No description provided
9.8 GiB
Languages
Shell
97.9%
Roff
1.4%
Emacs Lisp
0.2%
C
0.1%