src/Pure/System/bash.scala
changeset 80354 e5a6b3f1f377
parent 80271 198fc882ec0f
child 80480 972f7a4cdc0e
equal deleted inserted replaced
80353:52154fef991d 80354:e5a6b3f1f377
    34         else  "\\" + ch
    34         else  "\\" + ch
    35     }
    35     }
    36   }
    36   }
    37 
    37 
    38   def string(s: String): String =
    38   def string(s: String): String =
    39     if (s == "") "\"\""
    39     if (s.isEmpty) "\"\""
    40     else UTF8.bytes(s).iterator.map(bash_chr).mkString
    40     else UTF8.bytes(s).iterator.map(bash_chr).mkString
    41 
    41 
    42   def strings(ss: Iterable[String]): String =
    42   def strings(ss: Iterable[String]): String =
    43     ss.iterator.map(Bash.string).mkString(" ")
    43     ss.iterator.map(Bash.string).mkString(" ")
    44 
    44