Re: clojure.java.shell/sh and expand wildcard

2014-02-25 Thread John Gabriele
On Tuesday, January 21, 2014 11:05:13 PM UTC-5, Michael Gardner wrote: > > Try (sh “bash” “-c” “ls *.txt”). > > Sorry for the belated reply, Michael. Thanks so much for the help; works! -- John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To po

Re: clojure.java.shell/sh and expand wildcard

2014-01-21 Thread Michael Gardner
Try (sh “bash” “-c” “ls *.txt”). On Jan 21, 2014, at 21:51 , John Gabriele wrote: > I'd like to do something like: > > user=> (require '[clojure.java.shell :as sh]) > user=> (sh/sh "ls" "*.txt") > > but get: > > {:exit 2, :out "", :err "ls: cannot access *.txt: No such file or >

clojure.java.shell/sh and expand wildcard

2014-01-21 Thread John Gabriele
I'd like to do something like: user=> (require '[clojure.java.shell :as sh]) user=> (sh/sh "ls" "*.txt") but get: {:exit 2, :out "", :err "ls: cannot access *.txt: No such file or directory\n"} even though there *are* a few .txt files present. That error message is the same one I'