Fork me on GitHub
#babashka
<
2021-07-30
>
Jakub Šťastný18:07:42

Quick check: I want to pipe a string from BB into a process. Of course I do not want to deal with escaping the damn thing, as in (sh/sh "sh" "-c" "echo gpg-key-string | apt-key add -"). Seems to me that clojure.java.shell doesn't support that, is that correct? So I in fact need to use babashka.process, which allows me to do so via something like (-> (println gpg-key) (process '[apt-key add -])), is that the case?

borkdude18:07:18

@jakub.stastny.pt_serv babashka.process supports :in, so does clojure.java.shell

borkdude18:07:27

(process [...] {:in "foo"})

Jakub Šťastný18:07:25

Oh I missed that one. Thanks @borkdude!

borkdude22:07:18

If someone's interested in the bb-like thing for node, join #tbd. We've got reagent + ink working! https://github.com/borkdude/tbd#reagent

borkdude22:07:33

Also, need better name.

Cora (she/her)23:07:29

it's a bold name, and reminiscent of cmd.exe -> powershell

phronmophobic23:07:51

I like bbscript or bs for short, but that's probably bad for SEO

Cora (she/her)23:07:00

bbs for short isn't bad, it'll only confuse people generationally

Cora (she/her)23:07:48

ok, I really like bonk but I know that won't be picked

Cora (she/her)23:07:51

that links to dash, a very tiny posix-compliant shell, aims to be a lot smaller than bash

Cora (she/her)23:07:06

and dedushka is the russian word for grandpa

Cora (she/her)23:07:57

and it's not like anyone is using the command dd or anything 😛

😆 2