Bug 89639 - Conflicting --define and --rcfile cmdline evaluation
Conflicting --define and --rcfile cmdline evaluation
Status: CLOSED WONTFIX
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm (Show other bugs)
1.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-04-25 09:30 EDT by Enrico Scholz
Modified: 2007-04-18 12:53 EDT (History)
0 users

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


Attachments (Terms of Use)

  None (edit)
Description Enrico Scholz 2003-04-25 09:30:34 EDT
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 09:35:18 EDT
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.