Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269912 - Specify how "echo" is used in einfo etc.
Summary: Specify how "echo" is used in einfo etc.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-15 06:08 UTC by Ulrich Müller
Modified: 2009-05-17 18:02 UTC (History)
0 users

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


Attachments
Patch specifying interpretation of backslash escapes (0001-Specify-that-output-commands-like-einfo-interpret-ba.patch,1.60 KB, patch)
2009-05-17 16:58 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2009-05-15 06:08:56 UTC
Currently package managers use slightly different methods for output of einfo messages: Portage and Pkgcore use "echo -e" while Paludis uses plain "echo".

Not a big problem, but still I think that this should be standardised. For example, there is currently no PM independent way to display two blackslashes in a row. (See pkg_postinst of app-emacs/js2-mode in the Emacs overlay for a real-life example.) Also, usage of \t in messages seems to be fairly common throughout the tree.
Comment 1 Ciaran McCreesh 2009-05-17 14:30:31 UTC
dleverton's changed Paludis to use echo -e too, so we might as well just mandate that everywhere. Would you like to do the patch?
Comment 2 Ulrich Müller gentoo-dev 2009-05-17 16:58:46 UTC
Created attachment 191566 [details, diff]
Patch specifying interpretation of backslash escapes

(In reply to comment #1)
> dleverton's changed Paludis to use echo -e too, so we might as well just
> mandate that everywhere. Would you like to do the patch?

Attached.
Comment 3 Ciaran McCreesh 2009-05-17 17:49:08 UTC
Applied, thanks.