Bug 3138 - echo -e in dash will print "-e"
Summary: echo -e in dash will print "-e"
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium normal
Target Milestone: 1.3 M5
Assignee: Andrei Gherzan
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-09-19 14:11 UTC by Andrei Gherzan
Modified: 2012-10-10 11:44 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Gherzan 2012-09-19 14:11:49 UTC
oe-core / yocto removed the prerequisite to have sh pointing to bash. This means that echo -e in dash will actually print "-e" and interpret backslashes by default. 

http://www.mail-archive.com/yocto@yoctoproject.org/msg06000.html
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550399

Now, in oe-core / yocto there are a couple of occurrences of "echo -e". Generally these are scripts with bash shebangs - so no problem here. But there are 4 classes which use this:

buildhistory.bbclass
package_rpm.bbclass
package_deb.bbclass
package_ipk.bbclass

My solution would be to replace echo with print in these cases.
Comment 1 Andrei Gherzan 2012-09-20 12:49:31 UTC
Fix merged to master.
Comment 2 Alexandru Palalau 2012-10-10 11:44:12 UTC
Switching status to verified on the master branch.