| Summary: | =sys-apps/lsb-release-1.4 with dash has incorrect output, contains -e | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Maxim Kammerer <mk> |
| Component: | [OLD] Core system | Assignee: | Jeroen Roovers (RETIRED) <jer> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
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. |
# 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)