mrbaseman / parse_yaml

a simple yaml parser implemented in bash
GNU General Public License v3.0
165 stars 37 forks source link

Tags with dots are not parsed correctly #22

Closed abysas closed 9 months ago

abysas commented 9 months ago

Parsing the sample:

key.withdots: blue
another.key: yellow
key: red

results to:

="key.withdots: blue"
="key.withdots: blue another.key: yellow"
key="red"
__=" key"
mrbaseman commented 9 months ago

dots are not allowed as part of shell variable names, so I have decided replace them by the separator string in commit 25b02a2, hoping this helps

abysas commented 9 months ago

@mrbaseman, I was expecting dots to be replaced with underscore. Thank you very much for the swift fix.