Bug 22363 - macros (e.g. %configure) expanded even in comments
macros (e.g. %configure) expanded even in comments
Status: CLOSED WONTFIX
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-12-15 15:01 EST by Fox, David
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-12-15 15:01:47 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Fox, David 2000-12-15 15:01:45 EST
I tried to comment out a %configure macro with a # and supply an
alternative configuration,
but the original one still ran, it was apparantly expanded and the lines
after the initial # were
executed.

Comments should be stripped before macros are expanded.
Comment 1 Jeff Johnson 2000-12-16 13:50:43 EST
Macros are entirely context free, expanded in comments, within quotes, in the
false branch
of  %if, context free means context free.

Esacpe with an extra % if you want macro not to expand in comment.

Note You need to log in before you can comment on or make changes to this bug.