Skip to content

[Bug]:  #4

@TBarregren

Description

@TBarregren

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
EOT

I source the script and load the ini file:

source ini-file-parser.sh
process_ini_file test.ini

This 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?

  1. Open an terminal.
  2. Change the terminal's working directory to …/ini-file-parser/src.
  3. Copy the above script and paste it into the terminal.

Relevant log output

[ ERROR ] line 2: No value

Screeenshots

No response

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions