Clojurians
#lumo
<
2017-03-31
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

sashton20:03:30

Am I doing something wrong, trying to use shelljs.exec:

cljs.user=> (def sh (js/require "shelljs"))
#'cljs.user/sh
cljs.user=> (.exec sh "ls")
WARNING: Use of undeclared Var cljs.user/var at line 1
WARNING: Use of undeclared Var cljs.user/child at line 1
WARNING: Can't take value of macro cljs.core/require at line 1
WARNING: Use of undeclared Var cljs.user/fs at line 2
WARNING: Can't take value of macro cljs.core/require at line 2
WARNING: Use of undeclared Var cljs.user/var at line 3
WARNING: Use of undeclared Var cljs.user/childProcess at line 3
                                                                       ⬆
Invalid token: :
nil

sashton20:03:28

whereas this works fine:

cljs.user=> (.ls sh)
#js ["node_modules" "src"]