Bug 129944 - popt: support for lone dashes
popt: support for lone dashes
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2004-08-15 03:47 EDT by Jan Engelhardt
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-02 11:24:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to recognize lone dashes (STDIN/STDOUT) (732 bytes, patch)
2004-08-15 03:48 EDT, Jan Engelhardt
no flags Details | Diff
simple test app (1.13 KB, text/plain)
2004-08-15 03:49 EDT, Jan Engelhardt
no flags Details

  None (edit)
Description Jan Engelhardt 2004-08-15 03:47:29 EDT
Description of problem:
popt does not recognize lone dashes, i.e. "-" which are commonly used
to specify STDIN/STDOUT, but instead says "-: unknown option".

Version-Release number of selected component (if applicable):
rpm-4.1.1-177 / popt-1.7-176.3 (from SuSE, sorry ;-))

Additional info:
I have attached a patch that implements the feature to recognize such
lone dashes, as well as a simple test.c.

How to reproduce:
test.c, if compiled and run as "a.out AX -a BX - CX -a DX" should
yield "-: unknown option, a.out AX -a BX - CX -a DX" without the patch,
"AX BX - CX DX" with patch.

BTW, "popt" is missing in the "Component" list.
Comment 1 Jan Engelhardt 2004-08-15 03:48:37 EDT
Created attachment 102739 [details]
Patch to recognize lone dashes (STDIN/STDOUT)
Comment 2 Jan Engelhardt 2004-08-15 03:49:50 EDT
Created attachment 102740 [details]
simple test app
Comment 3 Jan Engelhardt 2004-10-21 12:10:59 EDT
Comment 4 Jan Engelhardt 2005-03-14 07:07:36 EST
Comment 5 Jan Engelhardt 2005-04-29 11:34:05 EDT
Does anybody look at this even?
Comment 6 Jeff Johnson 2005-11-02 11:24:07 EST
Patch added to popt CVS. Should be in rpm-4.4.3-0.32 when built.

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