From patchwork Wed Feb 20 15:09:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: base-files: fix 'dash' expanding '\n' Date: Wed, 20 Feb 2013 15:09:17 -0000 From: Javier Viguera X-Patchwork-Id: 44935 Message-Id: <1361372957-38860-1-git-send-email-javier.viguera@digi.com> To: Cc: Javier Viguera Dash's 'echo' command expands '\n' by default, so the '\n' is not included in the '/etc/issue' file. Use 'printf' for portability between different shells. Signed-off-by: Javier Viguera --- Probably also worth to be cherry-picked to 'danny' branch. meta/recipes-core/base-files/base-files_3.0.14.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb index 6a3db50..e7a9d82 100644 --- a/meta/recipes-core/base-files/base-files_3.0.14.bb +++ b/meta/recipes-core/base-files/base-files_3.0.14.bb @@ -129,7 +129,7 @@ do_install_basefilesissue () { printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net fi - echo "\n \l" >> ${D}${sysconfdir}/issue + printf "\\\n \\\l\n" >> ${D}${sysconfdir}/issue echo >> ${D}${sysconfdir}/issue echo "%h" >> ${D}${sysconfdir}/issue.net echo >> ${D}${sysconfdir}/issue.net