the notation \cX don't work when used in sub() with //, it's normal ?

aestivum% cat b.rb
#!/usr/bin/ruby
a = "a" + 24.chr
p a
a.sub!(/\cX$/, '')
p a
a.sub!("\cX$", '')
p a
aestivum% b.rb
"a\030"
"a\030"
"a"
aestivum% 



Guy Decoux