From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-05-21T08:55:21+09:00 Subject: restore backquote after overloading Is it possible to restore the original backquote ? -- Simon Strandgaard > ruby demo_backquote.rb 1 ls overload.rb xxx hello 2 ls overload.rb xxx hello 3 > > expand -t4 demo_backquote.rb def sandbox_execute(cmd) puts cmd "hello" end def install_sandbox # backquote: `command` %x(command) def `(cmd); sandbox_execute(cmd); end end install_sandbox puts "1" puts %x(ls overload.rb xxx) puts "2" puts `ls overload.rb xxx` puts "3" >