crudini icon indicating copy to clipboard operation
crudini copied to clipboard

Remove quotes for shell scripts

Open Hayao0819 opened this issue 4 years ago • 1 comments

I'm very excited to find a great tool that I can use in this shell script right now.

When I use this tool in a shell script to reference a value, I have to use sed to manually remove the quotes. I want an option to remove quotes, like the -r option of the jq command.

Hayao0819 avatar Feb 09 '21 03:02 Hayao0819

quotes are unusual in ini values, since they're redundant. You might use the shell to parse with something like:

eval variable=$(crudini --get file.ini section parameter)

Now $variable will have the unquoted value.

Perhaps we can add an option. Perhaps like jq -r, we could assume the values were json, and use that to unquote

pixelb avatar Feb 09 '21 12:02 pixelb