bash_ini_parser
bash_ini_parser copied to clipboard
simple INI file parser
Just a few typos that I came across.
The substitution for the escape of ' not work. I propose this correction : ``` diff --git a/read_ini.sh b/read_ini.sh index 06b1bc8..2ae2a85 100755 --- a/read_ini.sh +++ b/read_ini.sh @@ -270,7 +270,7 @@...
First off: this is excellent and has saved me a lot of time. Thank you for making it and making it public. I came across this issue when making the...
this fixes the issue #5 in arch I had the same problem. here's a fix. thanks for sharingm cool script.
Test#5 fails on var3 and 4 with the same issue expected was ... \ ..\.... generated only had one \ versus the two in the correct file. bash -version 4.1.17(1)...
Add confifuration parameter to optionally allow empty values. Add support to handle indented comments and multi-line values. Additional test scripts to check Python config parser compatibility https://docs.python.org/3/library/configparser.html
subject changed by Rudi to match the feature request of post #2
In a script with "set -o errexit" the read_ini will fail. As a work-around, turn off errexit before using read_ini: ``` set +o errexit read_ini ~/.script.ini set -o errexit ```
See [bpkg](https://github.com/bpkg/bpkg) we may plan on using this in the core
Bug: LINE_NUM incrementation throws an "exception" when run in bash that ships with Ubuntu 12.04.2. Error was caught when using bash 'trap' mechanism to do exception handling. Proposed solution: change...