summaryrefslogtreecommitdiff
path: root/test/files/run/t6194.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-27 11:41:22 -0800
committerPaul Phillips <paulp@improving.org>2012-12-27 11:48:54 -0800
commitac61e341216c2c61e29c74a8c3c27e915d479925 (patch)
tree4b429f319ce2287b33647a1c8f90947779785f16 /test/files/run/t6194.scala
parent1284c3c6f38cc419a0a39fd68b3d5cf81b36b1a5 (diff)
downloadscala-ac61e341216c2c61e29c74a8c3c27e915d479925.tar.gz
scala-ac61e341216c2c61e29c74a8c3c27e915d479925.tar.bz2
scala-ac61e341216c2c61e29c74a8c3c27e915d479925.zip
SI-6194, repl crash.
Always a bad idea to use replaceAll on unknown strings, as we saw here when windows classpaths arrived containing escape-requiring backslashes.
Diffstat (limited to 'test/files/run/t6194.scala')
-rw-r--r--test/files/run/t6194.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t6194.scala b/test/files/run/t6194.scala
new file mode 100644
index 0000000000..ced3259427
--- /dev/null
+++ b/test/files/run/t6194.scala
@@ -0,0 +1,8 @@
+import scala.tools.nsc.util._
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ val cp = ClassPath.expandPath("""C:\FooBar\Java\includes\*.jar""") mkString java.io.File.pathSeparator
+ println(cp)
+ }
+}