bash-ini-parser icon indicating copy to clipboard operation
bash-ini-parser copied to clipboard

Removing whitespace doesn't work

Open bairamovazat opened this issue 2 years ago • 2 comments

ini-file:

[section]
var = "var_value"
vartwo= "var_two_value"

error message: line 86: syntax error near unexpected token ('`

debug I caught what is causing the error. As you can see, the spaces have not been removed. image image

bash version I have tested this in wsl and cygwin. ubuntu wsl image

cygwin image

Thanks, Azat

bairamovazat avatar Mar 24 '22 16:03 bairamovazat

After adding this changes https://github.com/albfan/bash-ini-parser/pull/41 everything works fine

bairamovazat avatar Mar 24 '22 17:03 bairamovazat

Set this as a fail test case would help

albfan avatar Mar 24 '22 19:03 albfan