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 ;-))
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.
Created attachment 102739 [details]
Patch to recognize lone dashes (STDIN/STDOUT)
Created attachment 102740 [details]
simple test app
Does anybody look at this even?
Patch added to popt CVS. Should be in rpm-4.4.3-0.32 when built.