babashka

jasalt 2025-07-28T09:49:48.561269Z

Wondering, would it be possible to have macro for shell interop like ($ echo "hey janet" | tr "a-z" "A-Z") (and some others from https://janet.guide/scripting/). By the looks there's bit more sugar than with babashka/process in Janet's sh library. (source https://github.com/andrewchambers/janet-sh/blob/master/sh.janet#L258)

borkdude 2025-07-28T09:51:40.955339Z

There is one $ macro in babashka.process but I consider it kinda deprecated.

borkdude 2025-07-28T09:52:02.019399Z

The reason being: the sugar/complexity just isn't worth it

2025-07-28T09:52:43.481569Z

additional note: the library in question does not work in an ordinary windows environment afaiu -- whereas bb does?

👍 1
borkdude 2025-07-28T09:53:05.044409Z

yes, bb has a strong emphasis on being OS-agnostic

💯 2
jasalt 2025-07-28T10:01:41.206269Z

Right. That gets tricky..

jasalt 2025-07-28T10:05:52.786959Z

Should swap to a Windows for a couple weeks to learn appreciate this fully, hehe.

borkdude 2025-07-28T10:06:16.275719Z

if you want to do bash, just shell out to bash completely

jasalt 2025-07-28T10:08:14.748789Z

Yup.