Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482370 - =sys-apps/lsb-release-1.4 with dash has incorrect output, contains -e
Summary: =sys-apps/lsb-release-1.4 with dash has incorrect output, contains -e
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-24 21:44 UTC by Maxim Kammerer
Modified: 2014-09-27 19:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Kammerer 2013-08-24 21:44:19 UTC
# 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)
Comment 1 yegle 2014-09-24 22:19:48 UTC
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
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-09-27 19:08:02 UTC
The POSIX form you are looking for is:

  printf '%b\n' "$MY_RANDOM_STRING"
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-09-27 19:19:30 UTC
+*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.