scala> scala.sys.process.Process.apply("abc\\")
java.lang.StringIndexOutOfBoundsException: String index out of range: 5
at java.lang.String.substring(String.java:1963)
at scala.sys.process.Parser$.tokenize(Parser.scala:90)
at scala.sys.process.ProcessCreation.apply(Process.scala:95)
at scala.sys.process.ProcessCreation.apply$(Process.scala:94)
at scala.sys.process.Process$.apply(Process.scala:46)
at scala.sys.process.ProcessCreation.apply(Process.scala:57)§
at scala.sys.process.ProcessCreation.apply$(Process.scala:57)
at scala.sys.process.Process$.apply(Process.scala:46)
... 32 elided
Problem
When trying to build process with command containing trailing backlash, the built-in tokenizing fails.
Reproduction steps
Scala version: 2.13.11
Problem
When trying to build process with command containing trailing backlash, the built-in tokenizing fails.