diff options
author | Aaron Bedra and Stuart Halloway <pair@thinkrelevance.com> | 2011-04-05 21:37:48 -0400 |
---|---|---|
committer | Stuart Halloway <stu@thinkrelevance.com> | 2011-05-06 09:46:30 -0400 |
commit | fe0cfc71e6ec7b546066188c555b01dae0e368e8 (patch) | |
tree | abd80f4834bf02c40d0daf2db36927007965bfb0 | |
parent | 39d973926f1b34332a9c766115f48a71f956b332 (diff) |
cleanup #765
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
-rw-r--r-- | src/clj/clojure/java/shell.clj | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/clj/clojure/java/shell.clj b/src/clj/clojure/java/shell.clj index 5331c6d2..cb3f90a2 100644 --- a/src/clj/clojure/java/shell.clj +++ b/src/clj/clojure/java/shell.clj @@ -12,7 +12,7 @@ collecting its stdout"} clojure.java.shell (:use [clojure.java.io :only (as-file copy)]) - (:import (java.io InputStream File Reader OutputStreamWriter ByteArrayOutputStream StringWriter) + (:import (java.io ByteArrayOutputStream StringWriter) (java.nio.charset Charset))) (def ^:dynamic *sh-dir* nil) @@ -81,8 +81,9 @@ collecting its stdout"} Options are - :in may be given followed by an InputStream, Reader, File, byte[], or - String input to be fed to the sub-process's stdin. + :in may be given followed by any legal input source for + clojure.java.io/copy, e.g. InputStream, Reader, File, byte[], + or String, to be fed to the sub-process's stdin. :in-enc option may be given followed by a String, used as a character encoding name (for example \"UTF-8\" or \"ISO-8859-1\") to convert the input string specified by the :in option to the |