This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-28
Channels
- # aleph (3)
- # announcements (3)
- # babashka (8)
- # beginners (12)
- # biff (4)
- # calva (12)
- # clerk (29)
- # clj-kondo (1)
- # clojure (104)
- # clojure-art (1)
- # clojure-austin (5)
- # clojure-berlin (3)
- # clojure-brasil (34)
- # clojure-europe (11)
- # clojure-germany (16)
- # clojure-losangeles (9)
- # clojure-nl (30)
- # clojure-norway (58)
- # clojure-uk (1)
- # core-async (8)
- # cursive (4)
- # data-science (9)
- # datalevin (1)
- # datomic (40)
- # emacs (2)
- # events (3)
- # helix (1)
- # honeysql (3)
- # hugsql (1)
- # hyperfiddle (66)
- # jobs (4)
- # juxt (7)
- # kaocha (9)
- # lsp (5)
- # malli (10)
- # off-topic (4)
- # polylith (2)
- # reitit (5)
- # releases (1)
- # remote-jobs (5)
- # sci (46)
- # scittle (2)
- # shadow-cljs (9)
- # tools-deps (17)
- # xtdb (8)
Babashka mention at the conj: https://twitter.com/borkdude/status/1651685733927645214 :-)
26
Wondering if this should work:
(binding [babashka.process/*defaults* (merge babashka.process/*defaults* {:dir "/tmp"})] (babashka.process/shell "bash" "-c" "echo $PWD"))
Expected (?): /tmp
Actual: whatever dir I'm in
Should this be printing /tmp
instead of the cwd?
(Also, is "cd'ing" like this a good idea?)Currently this doesn't work since the process function should take into account the SCI binding, which it currently doesn't, only for process
unfortunately.
But it can be fixed similar to this:
https://github.com/babashka/babashka/blob/2b24a84c117ca149e8c307e4f25f680703eaa12e/src/babashka/impl/process.clj#L11-L21