# dash /usr/bin/lsb_release -a -e LSB Version: n/a -e Distributor ID: Gentoo -e Description: NAME=Gentoo -e Release: n/a -e Codename: n/a I use "echo ${BASH:+-e}" in scripts, but maybe there is a better solution. (unrelated to bug #443116)
Confirm. Also Debian have a much higher version number and the lsb_release command is a python script instead of a shell script. Should we update to that version? ref: https://packages.debian.org/wheezy/lsb-release
The POSIX form you are looking for is: printf '%b\n' "$MY_RANDOM_STRING"
+*lsb-release-1.4-r2 (27 Sep 2014) + + 27 Sep 2014; Michał Górny <mgorny@gentoo.org> +lsb-release-1.4-r2.ebuild: + Use POSIX-compliant printf instead of 'echo -e' bashism, bug #482370.