3 ms·
Writing a Bash builtin in C to parse INI configs
- tracnar 2y agoInteresting! 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.
- lttlrck 2y agoHuh. This made me curious about JSON which led to https://github.com/Wiguwbe/bash-json https://github.com/Wiguwbe/bash-json I have had to graft JSON into legacy bash files enough times that this is worth another look.
- lsferreira42 2y agoSelf plug: https://github.com/lsferreira42/bash-ini-parser https://github.com/lsferreira42/bash-ini-parser