Fork me on GitHub
#clj-on-windows
<
2022-10-24
>
borkdude16:10:27

Well, it surely helps that EDN doesn't support backticks... I'm trying to pass an expression with a backtick to one of my programs, but this is... hard - platform-independently hard ;)

borkdude16:10:46

Like this works:

$ ./node_cli.js -e '(prn `(assoc {} :foo :bar))'
but this doesn't?
$ npx cherry -e '(prn `(assoc {} :foo :bar))'
sh: -c: line 0: unexpected EOF while looking for matching ``'
sh: -c: line 1: syntax error: unexpected end of file

borkdude16:10:35

oh and this works:

$ node_modules/.bin/cherry -e '(prn `(assoc {} :foo :bar))'
(assoc {} :foo :bar)
So it seems to be bash vs sh here