From: Jim Weirich Date: 2005-08-12T20:03:20+09:00 Subject: Re: Dear RubyGems: Perhaps a better way to override require... On Friday 12 August 2005 05:41 am, Trans wrote: > > If unique names aren't used, the result is an infinite loop. > > That's what I expected too. But when I tried, it didn't work so well. > My aliased version was working fine until I installed RubyGems. > Appaerently it was running my version twice. Thus escaping twice, "[]" > -> "%5B%5D" -> "%255B%255D". Perhaps this is b/c RubyGems uses a rescue > clause and retries and so ends up passing the name to my routine again. > Not sure. Were you modifying the string in-place? If so, try it without destructively modifying the string and either solution should work then. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)