Home » Console » Console_Getargs » Bug #3872
Add '--' option to tell Getargs to treat remainder of line as C_G_PARAMS
Details
| Request #3872 | Add '--' option to tell Getargs to treat remainder of line as C_G_PARAMS |
|---|---|
| Submitted | 2005-03-18 15:20 UTC |
| From | pearbugs at deadman dot org |
| Assigned | scottmattocks |
| Status | Wont fix |
| Package | Console_Getargs |
| PHP Version | 4.3.10 |
| OS | Debian |
| Roadmaps | (Not assigned) |
Comments
[2005-03-18 15:20 UTC] pearbugs at deadman dot org
Description:
------------
Many GNU applications (and perhaps other UNIX applications) will take a double-minus ('--') as an indicator to stop processing the rest of the string as possible switches. This is useful for deleting files with names like '-somefile':
rm -- -somefile
Any chance of getting this functionality into Console_Getargs ?
Thanks!
Reproduce code:
---------------
N/A
Expected result:
----------------
N/A
Actual result:
--------------
N/A
[2005-04-14 13:07 UTC] pearbugs at deadman dot org
Is there something that I've failed to do? Why nearly two months of silence?
[2005-04-14 13:08 UTC] pearbugs at deadman dot org
er, one month
[2005-04-22 12:32 UTC] pearbugs at deadman dot org
I'm confused. How does the current behavior differ from what I'm requesting? Is the current behavior documented somewhere?
[2005-04-22 14:07 UTC] scott at crisscott dot com
The current behavior and the requested behavior differ in that I cannot say for sure that the hyphen at the begining of -somefile will be ignored.
Unfortunately the behavior has not been properly documented.
Scott Mattocks