[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: perlrun.pod lies :)
On Sat, 08 Jan 2000 16:06:57 EST, Jeff Pinyan wrote:
>perlrun (for 5.005_02) says that switch processing, when using the is
>switch to Perl, stops upon reaching the argument --.
>
>That's not entirely true. It stops when it reaches an argument BEGINNING
>with '--':
>
> % perl -s prog -foo -bar -this-works --this-stops processing
Try this.
Sarathy
gsar@ActiveState.com
-----------------------------------8<-----------------------------------
Change 4779 by gsar@auger on 2000/01/10 05:06:16
terminate -s switch processing only on C<-->, not on C<--foo>
Affected files ...
... //depot/perl/perl.c#204 edit
Differences ...
==== //depot/perl/perl.c#204 (text) ====
Index: perl/perl.c
--- perl/perl.c.~1~ Mon Jan 10 09:38:08 2000
+++ perl/perl.c Mon Jan 10 09:38:08 2000
@@ -2827,7 +2827,7 @@
for (; argc > 0 && **argv == '-'; argc--,argv++) {
if (!argv[0][1])
break;
- if (argv[0][1] == '-') {
+ if (argv[0][1] == '-' && !argv[0][2]) {
argc--,argv++;
break;
}
End of Patch.
- Follow-Ups from:
-
Ilya Zakharevich <ilya@math.ohio-state.edu>
- References to:
-
Jeff Pinyan <jeffp@crusoe.net>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]