alt.hn

3/28/2025 at 10:08:07 PM

Writing a Bash builtin in C to parse INI configs

https://mbuki-mvuki.org/posts/2021-07-12-writing-a-bash-builtin-in-c-to-parse-ini-configs/

by namanyayg

3/29/2025 at 9:46:40 PM

Huh. This made me curious about JSON which led to https://github.com/Wiguwbe/bash-json

I have had to graft JSON into legacy bash files enough times that this is worth another look.

by lttlrck

3/29/2025 at 6:06:38 PM

Interesting! A use case I could see for using builtins would be to gradually rewrite a bash script in some other language, as otherwise you have to do it through subprocess which can be slow and inconvenient.

by tracnar