-
-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
What happened?
I create an ini file with a comment that looks like a key/value pair where value is missing:
cat <<EOT > test.ini
[section]
; x =
y = 2
EOTI source the script and load the ini file:
source ini-file-parser.sh
process_ini_file test.iniThis results in an error message:
[ ERROR ] line 2: No value
Expected behavior
I expect the script to ignore line 2 because it is a comment.
How do we reproduct the bug?
- Open an terminal.
- Change the terminal's working directory to
…/ini-file-parser/src. - Copy the above script and paste it into the terminal.
Relevant log output
[ ERROR ] line 2: No valueScreeenshots
No response
Additional information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct