diff options
author | Heather Miller <heather.miller@epfl.ch> | 2011-10-09 16:48:27 +0000 |
---|---|---|
committer | Heather Miller <heather.miller@epfl.ch> | 2011-10-09 16:48:27 +0000 |
commit | 2adf5a0613c332045b65687a1f1e8a3fe8dd0222 (patch) | |
tree | 5d121d696c375f8d6efd8d088641383c02a314c7 /src/library/scala/sys/process/Process.scala | |
parent | 4646937ff874c9b21aed22c0d61a23761f4a230b (diff) | |
download | scala-2adf5a0613c332045b65687a1f1e8a3fe8dd0222.tar.gz scala-2adf5a0613c332045b65687a1f1e8a3fe8dd0222.tar.bz2 scala-2adf5a0613c332045b65687a1f1e8a3fe8dd0222.zip |
Big improvements to the documentation of collec...
Big improvements to the documentation of collection.Iterator, courtesy
of Daniel Sobral. Also includes a small correction to the documentation
of sys.process.Process. No review.
Diffstat (limited to 'src/library/scala/sys/process/Process.scala')
-rw-r--r-- | src/library/scala/sys/process/Process.scala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/library/scala/sys/process/Process.scala b/src/library/scala/sys/process/Process.scala index db10ff9c1d..b8765aa615 100644 --- a/src/library/scala/sys/process/Process.scala +++ b/src/library/scala/sys/process/Process.scala @@ -154,14 +154,6 @@ trait ProcessCreation { * [[scala.sys.process.ProcessBuilder.Source]], which can then be * piped to something else. * - * This will concatenate the output of all sources. - */ - def cat(file: Source, files: Source*): ProcessBuilder = cat(file +: files) - - /** Create a [[scala.sys.process.ProcessBuilder]] from a non-empty sequence - * of [[scala.sys.process.ProcessBuilder.Source]], which can then be - * piped to something else. - * * This will concatenate the output of all sources. For example: * * {{{ @@ -176,6 +168,14 @@ trait ProcessCreation { * cat(spde, dispatch, build) #| "grep -i scala" ! * }}} */ + def cat(file: Source, files: Source*): ProcessBuilder = cat(file +: files) + + /** Create a [[scala.sys.process.ProcessBuilder]] from a non-empty sequence + * of [[scala.sys.process.ProcessBuilder.Source]], which can then be + * piped to something else. + * + * This will concatenate the output of all sources. + */ def cat(files: Seq[Source]): ProcessBuilder = { require(files.nonEmpty) files map (_.cat) reduceLeft (_ #&& _) |