Trying in clj and got:
user=> (println (sh/sh "ls" "*"))
{:exit 1, :out , :err ls: *: No such file or directory
}
It appears that glob syntax is not supported here. Any reasons and solutions?
Trying in clj and got:
user=> (println (sh/sh "ls" "*"))
{:exit 1, :out , :err ls: *: No such file or directory
}
It appears that glob syntax is not supported here. Any reasons and solutions?
I think sh/sh
quotes all arguments so ls '*'
is what gets executed. This seems to work though:
(sh/sh "bash" "-c" "ls *")