Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335702 - app-portage/eclass-manpages: @CODE block doesn't escape backslashes
Summary: app-portage/eclass-manpages: @CODE block doesn't escape backslashes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 333911
  Show dependency tree
 
Reported: 2010-09-02 15:37 UTC by Michał Górny
Modified: 2010-09-12 06:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-02 15:37:44 UTC
The eclass-to-manpage.awk lacks proper escaping within the @CODE blocks. In particular:

[…]
# @CODE
# somefunc \
#   somearg \
#   || die
# @CODE

will be joined into a single line with multiple spaces in the manpage. If I used \\, the manpage is fine but the 'in-code' look of the example suggests double-escaping.
Comment 1 SpanKY gentoo-dev 2010-09-12 06:44:30 UTC
i'm only supporting trailing backslashes due to their commonality.  you're on your own with any other ones.

http://sources.gentoo.org/app-portage/eclass-manpages/files/eclass-to-manpage.awk?r1=1.17&r2=1.18