babashka 2025-07-28

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)

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

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

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

👍 1

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

💯 2

Right. That gets tricky..

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

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