Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I got really excited when I saw `from_ini` but disappointed when I saw no `to_ini`.

I would really like to find a good workflow for idempotent modifications to INI files, but haven't stumbled across one yet.



I'm abusing `git config -f $PATH` as a poor man's portable INI parser/modifier in shell scripts, works pretty well but imposes some Git-specific syntax limitations.


Funny enough, the thing that brought this up for me most recently was that some value in `~/.gitconfig` is not idempotent when set through the command line, and I was trying to use it in a shell startup script.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: