File lsb-release-2.0-fix-bashisms.patch of Package lsb-release
diff -Ndurp lsb-release-2.0/lsb_release lsb-release-2.0-fix-bashisms/lsb_release
--- lsb-release-2.0/lsb_release 2004-06-30 20:30:34.000000000 +0300
+++ lsb-release-2.0-fix-bashisms/lsb_release 2014-10-19 17:46:34.830540576 +0300
@@ -83,11 +83,11 @@ ERROR_NOANSWER="3"
# typically non LSB compliant distro!
# Defines our messages
-MSG_LSBVER="LSB Version:\t"
-MSG_DISTID="Distributor ID:\t"
-MSG_DISTDESC="Description:\t"
-MSG_DISTREL="Release:\t"
-MSG_DISTCODE="Codename:\t"
+MSG_LSBVER="LSB Version: "
+MSG_DISTID="Distributor ID: "
+MSG_DISTDESC="Description: "
+MSG_DISTREL="Release: "
+MSG_DISTCODE="Codename: "
MSG_NA="n/a"
MSG_NONE="(none)"
MSG_RESULT="" # contains the result in case short output selected
@@ -299,7 +299,7 @@ GetDistribInfo() {
DisplayVersion() {
if [ -z "$ARG_S" ]
then
- echo -e "$MSG_LSBVER$LSB_VERSION" # at least "n/a"
+ echo "$MSG_LSBVER$LSB_VERSION" # at least "n/a"
else
MSG_RESULT="$MSG_RESULT${MSG_RESULT:+ }$LSB_VERSION"
fi
@@ -323,7 +323,7 @@ DisplayID() {
fi
if [ -z "$ARG_S" ]
then
- echo -e "$MSG_DISTID$DISTRIB_ID"
+ echo "$MSG_DISTID$DISTRIB_ID"
else
MSG_RESULT="$MSG_RESULT${MSG_RESULT:+ }$DISTRIB_ID"
fi
@@ -338,7 +338,7 @@ DisplayDescription() {
fi
if [ -z "$ARG_S" ]
then
- echo -e "$MSG_DISTDESC$DISTRIB_DESCRIPTION"
+ echo "$MSG_DISTDESC$DISTRIB_DESCRIPTION"
else
MSG_RESULT="$MSG_RESULT${MSG_RESULT:+ }\"$DISTRIB_DESCRIPTION\""
fi
@@ -356,7 +356,7 @@ DisplayRelease() {
fi
if [ -z "$ARG_S" ]
then
- echo -e "$MSG_DISTREL$DISTRIB_RELEASE"
+ echo "$MSG_DISTREL$DISTRIB_RELEASE"
else
MSG_RESULT="$MSG_RESULT${MSG_RESULT:+ }$DISTRIB_RELEASE"
fi
@@ -374,7 +374,7 @@ DisplayCodename() {
fi
if [ -z "$ARG_S" ]
then
- echo -e "$MSG_DISTCODE$(echo "$DISTRIB_CODENAME" | \
+ echo "$MSG_DISTCODE$(echo "$DISTRIB_CODENAME" | \
tr -d "[:blank:]")" # Remove blanks
else
MSG_RESULT="$MSG_RESULT${MSG_RESULT:+ }$(echo "$DISTRIB_CODENAME" | \