title: Issues when using Groovysh as Java REPL
body: <p>As this post (<a href="https://stackoverflow.com/questions/397488/is-there-something-like-pythons-interactive-repl-mode-but-for-java">Is there something like python&#39;s interactive REPL mode, but for Java?</a>) shows, we can use <code>groovysh</code> for Java REPL. </p>
  
  <p>I have this code that compiles well with <code>javac</code>.</p>
  
  <pre><code>    GroovyShell shell = new GroovyShell();
      shell.evaluate("println \"My name is ${name}\"");
  </code></pre>
  
  <p>However, when I tried to run this command in the <code>groovysh</code>, I got error. I had to make <code>\${name}</code> to bypass the error. </p>
  
  <p>Why is this? What other possible (corner) cases that Java and Groovy code be different? </p>