From: Mike Frysinger Date: Mon, 19 Apr 2010 19:54:47 +0000 (+0000) Subject: make_desktop_entry: use printf %b to make arg passing simpler since we only want... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e54da7542c07b052f4a6efbe2e6bf11570a41b0d;p=gentoo.git make_desktop_entry: use printf %b to make arg passing simpler since we only want to support embedded escape sequences --- diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index cf84cdf837a3..7ac958bfe278 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.341 2010/03/23 03:40:18 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.342 2010/04/19 19:54:47 vapier Exp $ # @ECLASS: eutils.eclass # @MAINTAINER: @@ -1033,7 +1033,7 @@ make_desktop_entry() { ewarn "make_desktop_entry: update your 5th arg to read Path=${fields}" fields="Path=${fields}" fi - [[ -n ${fields} ]] && printf "${fields}\n" >> "${desktop}" + [[ -n ${fields} ]] && printf '%b\n' "${fields}" >> "${desktop}" ( # wrap the env here so that the 'insinto' call