This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-08
Channels
- # aleph (2)
- # aws (1)
- # beginners (172)
- # boot (15)
- # cider (17)
- # clara (7)
- # cljs-dev (22)
- # cljsrn (12)
- # clojars (3)
- # clojure (110)
- # clojure-dev (5)
- # clojure-italy (13)
- # clojure-sanfrancisco (5)
- # clojure-spec (3)
- # clojure-uk (31)
- # clojurescript (110)
- # community-development (2)
- # cursive (16)
- # datomic (19)
- # docs (4)
- # emacs (49)
- # fulcro (24)
- # jobs (5)
- # keechma (2)
- # lein-figwheel (41)
- # leiningen (10)
- # luminus (4)
- # lumo (24)
- # mount (24)
- # numerical-computing (1)
- # off-topic (16)
- # om (4)
- # onyx (6)
- # parinfer (9)
- # planck (8)
- # re-frame (7)
- # reagent (6)
- # shadow-cljs (125)
- # sql (5)
- # test-check (9)
- # unrepl (6)
- # yada (5)
Does anyone know how to get planck, deps.edn, and a shebang (`#!`) to work nicely together? The start of my file looks like this:
#!/usr/bin/env planck -c `/usr/bin/env clojure -Spath`
which I would expect to run planck -c src:/Users/bmaddy/.m2/repository/org/clojure...
, but I think it's actually running this:
planck -c \`/usr/bin/env clojure -Spath\`
(where the backticks aren't evaluated)Oh geez, I just need to use a helper bash script. That was silly.
#!/bin/bash
/usr/bin/env planck -c `/usr/bin/env clojure -Spath` my-script.cljs "$@"
Interesting @bmaddy, my guess is that backticks have no meaning when put in the shebang line
I know that under linux the shebang line is sent directly to the program, without shell parsing - which means an attempt to send multiple arguments, or any shell substitution, results in the raw input including spaces backticks dollar signs etc. being sent directly to the program as a single unmodified argument
OSX behaves differently