Actions
Bug #1695
closedString interpolation Issue with escape characters inside an in-string evaluated statement
    Bug #1695:
    String interpolation Issue with escape characters inside an in-string evaluated statement
  
Description
=begin
Apologies if this has already been addressed but I could not find anything:
Alone, works fine¶
'a'.gsub("'",'\'')
=> "a"
Inside a string in #{} - bombs¶
"hi #{'a'.gsub("'",'\'')}"
[just waits for another "]
"
SyntaxError: compile error
(irb):20: unterminated string meets end of file
from (irb):20
=end
        
           Updated by runpaint (Run Paint Run Run) over 16 years ago
          Updated by runpaint (Run Paint Run Run) over 16 years ago
          
          
        
        
      
      =begin
(Deleted).
=end
        
           Updated by crash2burn (Jason Pearlman) over 16 years ago
          Updated by crash2burn (Jason Pearlman) over 16 years ago
          
          
        
        
      
      =begin
Thanks! If anything this seems more on the IRB side of things.
=end
        
           Updated by nobu (Nobuyoshi Nakada) over 16 years ago
          Updated by nobu (Nobuyoshi Nakada) over 16 years ago
          
          
        
        
      
      - Category set to lib
- Assignee set to keiju (Keiju Ishitsuka)
=begin
=end
        
           Updated by yugui (Yuki Sonoda) over 16 years ago
          Updated by yugui (Yuki Sonoda) over 16 years ago
          
          
        
        
      
      - Status changed from Open to Assigned
- Priority changed from Normal to 3
- Target version set to 1.9.2
=begin
=end
        
           Updated by keiju (Keiju Ishitsuka) over 16 years ago
          Updated by keiju (Keiju Ishitsuka) over 16 years ago
          
          
        
        
      
      - Status changed from Assigned to Closed
=begin
=end
Actions