Follow

;ugh. Playing the escape game in Bash. I need to echo a piped output that sends `"$VALUE"` (including the double-quotes). Tried escaping them, then escaping the escape, but no luck. So frustrating...

@worldsendless this sort of thing is why I do all my shell scripting using babashka nowadays

@yogthos I would love to do this with Babashka -- but it's all about setting up environment variables and then piping them to other application CLIs. Babashka doesn't seem ideal for that.

@worldsendless it is a bit more verbose, so for small scripts might not be worth the effort

@worldsendless this is why I'm trying out scheme (racket) as my go-to scripting language

even when using zsh, where quoting makes sense, I eventually had to sacrifice readability or performance to traverse a third dimension / variable in tables (thing combining `find` for directories, `grep` for files and lines, and then accumulating results)

guile looked ok-ish at one point (great performance, traversing multi-dimensionally is easy to read ), but I had the hardest of times matching abstract concepts with implementation ("how do I run code blocks on each `find`-ed file", "how can do it in parallel?", "can I use this API with other types?", "can I extend this API?"). Lack of examples everywhere and seems little to no activity on the internet, at least for basic scripting

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.