diff options
-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 |