summaryrefslogtreecommitdiff
path: root/src/repl
diff options
context:
space:
mode:
authorAntoine Gourlay <antoine@gourlay.fr>2013-10-16 17:55:49 +0200
committerAntoine Gourlay <antoine@gourlay.fr>2013-11-06 17:35:03 +0100
commit490f946fc804358109098f0404e6483635e1d055 (patch)
treef20515f4054ffd0023a95986a69c54843a0e4ae2 /src/repl
parentae47ccc35bdcfbdb965e2297b131a2416495d4e7 (diff)
downloadscala-490f946fc804358109098f0404e6483635e1d055.tar.gz
scala-490f946fc804358109098f0404e6483635e1d055.tar.bz2
scala-490f946fc804358109098f0404e6483635e1d055.zip
SI-7634 resurrect the REPL's :sh command
ProcessResult had a companion object in 2.10 that somehow disappeared in 2.11. It only called "new ProcessResult(...)", so the REPL might just as well do that.
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/scala/tools/nsc/interpreter/ILoop.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/scala/tools/nsc/interpreter/ILoop.scala b/src/repl/scala/tools/nsc/interpreter/ILoop.scala
index 217414809e..a96bed4696 100644
--- a/src/repl/scala/tools/nsc/interpreter/ILoop.scala
+++ b/src/repl/scala/tools/nsc/interpreter/ILoop.scala
@@ -579,7 +579,7 @@ class ILoop(in0: Option[BufferedReader], protected val out: JPrintWriter)
def apply(line: String): Result = line match {
case "" => showUsage()
case _ =>
- val toRun = classOf[ProcessResult].getName + "(" + string2codeQuoted(line) + ")"
+ val toRun = s"new ${classOf[ProcessResult].getName}(${string2codeQuoted(line)})"
intp interpret toRun
()
}