in reply to Bug or feature? s/// and the g option
Just because it's not a very useful thing to do, doesn't mean it's not a bug. $1, etc., shouldn't be affected by unsuccessful matches. This is clearly spelled out in $& (which suffers the same bug as $1) even if $<_digits_> is for some reason missing the "successful" qualification.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bug or feature? s/// and the g option
by Cop (Initiate) on Oct 14, 2007 at 22:20 UTC |