You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Nick Gearls <ni...@gmail.com> on 2009/11/19 18:12:44 UTC
mod_substitute strange behaviour
I'm not sure this is really desired:
1. More or less normal/abnormal case:
s/123/abc123def/ -> "*123*" becomes "abcabc123defdef"
Substitution is made twice (why not 3 times, 4 times,... ?).
Flatening the bucket or not does not changing anything.
I suppose we could argue that the author has to ensure that there is no
cycle, although I find this a major problem.
Can't we add a flag to replace only once? That would be neat.
2. This one is really difficult to understand:
s/123/abcxxxdef/
s/xxx/123/ -> "*123*" becomes "abcabc123defdef", again
By issuing to successive commands, I cannot understand why the first one
is executed again after the second one ?!?
Is this an expected behaviour?
Thanks,
Nick
Re: mod_substitute strange behaviour
Posted by Nick Gearls <ni...@gmail.com>.
Last version from trunk
Jim Jagielski wrote:
> On Nov 19, 2009, at 12:12 PM, Nick Gearls wrote:
>
>> I'm not sure this is really desired:
>>
>> 1. More or less normal/abnormal case:
>> s/123/abc123def/ -> "*123*" becomes "abcabc123defdef"
>> Substitution is made twice (why not 3 times, 4 times,... ?).
>> Flatening the bucket or not does not changing anything.
>> I suppose we could argue that the author has to ensure that there is no cycle, although I find this a major problem.
>> Can't we add a flag to replace only once? That would be neat.
>>
>
>> 2. This one is really difficult to understand:
>> s/123/abcxxxdef/
>> s/xxx/123/ -> "*123*" becomes "abcabc123defdef", again
>> By issuing to successive commands, I cannot understand why the first one is executed again after the second one ?!?
>> Is this an expected behaviour?
>>
>
> What version?
Re: mod_substitute strange behaviour
Posted by Jim Jagielski <ji...@jaguNET.com>.
On Nov 19, 2009, at 12:12 PM, Nick Gearls wrote:
> I'm not sure this is really desired:
>
> 1. More or less normal/abnormal case:
> s/123/abc123def/ -> "*123*" becomes "abcabc123defdef"
> Substitution is made twice (why not 3 times, 4 times,... ?).
> Flatening the bucket or not does not changing anything.
> I suppose we could argue that the author has to ensure that there is no cycle, although I find this a major problem.
> Can't we add a flag to replace only once? That would be neat.
>
> 2. This one is really difficult to understand:
> s/123/abcxxxdef/
> s/xxx/123/ -> "*123*" becomes "abcabc123defdef", again
> By issuing to successive commands, I cannot understand why the first one is executed again after the second one ?!?
> Is this an expected behaviour?
>
What version?