diff options
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/instruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/instruby.rb b/tool/instruby.rb index 3c277720d3..730a9151d4 100755 --- a/tool/instruby.rb +++ b/tool/instruby.rb @@ -391,7 +391,7 @@ install?(:local, :comm, :bin, :'bin-comm') do when 's' next if pat == '^' and rep.empty? exp << [addr, (opt.include?('g') ? :gsub! : :sub!), - Regexp.new(pat, opt.include?('i')), rep] + Regexp.new(pat, opt.include?('i')), rep.gsub(/&/){'\&'}] when 'y' exp << [addr, :tr!, Regexp.quote(pat), rep] end |