From 490f946fc804358109098f0404e6483635e1d055 Mon Sep 17 00:00:00 2001 From: Antoine Gourlay Date: Wed, 16 Oct 2013 17:55:49 +0200 Subject: 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. --- test/files/run/t7634.scala | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/files/run/t7634.scala (limited to 'test/files/run/t7634.scala') diff --git a/test/files/run/t7634.scala b/test/files/run/t7634.scala new file mode 100644 index 0000000000..aeb6a5e671 --- /dev/null +++ b/test/files/run/t7634.scala @@ -0,0 +1,22 @@ +import java.io.File +import scala.tools.partest.ReplTest +import scala.util.Properties.propOrElse + +/** +* filter out absolute path to java +* filter: java +*/ +object Test extends ReplTest { + def java = propOrElse("javacmd", "java") + def code = s""":sh $java -classpath $testOutput hello.Hello + |.lines""".stripMargin +} + +package hello { + object Hello { + def main(a: Array[String]) { + System.out.println("shello, world.") + } + } +} + -- cgit v1.2.3