Bug 89639 - Conflicting --define and --rcfile cmdline evaluation
Summary: Conflicting --define and --rcfile cmdline evaluation
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm (Show other bugs)
(Show other bugs)
Version: 1.0
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-04-25 13:30 UTC by Enrico Scholz
Modified: 2007-04-18 16:53 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-04-25 13:35:18 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Enrico Scholz 2003-04-25 13:30:34 UTC
Description of problem:

The '--rcfile' cmdline option is ignored when there is a previous '--define'.


Version-Release number of selected component (if applicable):

rpm-4.2-0.69


How reproducible:

100%


Steps to Reproduce:
0. rm -f a
1. rpm --define='foo bar' --rcfile=a
2. rpm --rcfile=a --define='foo bar'

    
Actual results:

no message at 1.

'error: Unable to open a for reading: No such file or directory.' at 2.


Expected results:

errormessages at 1 also

Comment 1 Jeff Johnson 2003-04-25 13:35:18 UTC
Yup, adding --define triggers rcfile reading, --rcfile
not yet processed, when processed it's too late to matter.

Put --rcfile first.


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