Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Dev

mod_substitute strange behaviour

 

 

Apache dev RSS feed   Index | Next | Previous | View Threaded


nickgearls at gmail

Nov 19, 2009, 9:12 AM

Post #1 of 3 (556 views)
Permalink
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


jim at jaguNET

Nov 20, 2009, 1:46 PM

Post #2 of 3 (501 views)
Permalink
Re: mod_substitute strange behaviour [In reply to]

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?


nickgearls at gmail

Nov 23, 2009, 3:42 AM

Post #3 of 3 (472 views)
Permalink
Re: mod_substitute strange behaviour [In reply to]

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?

Apache dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.