Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove quotes for shell scripts #79

Open
Hayao0819 opened this issue Feb 9, 2021 · 1 comment
Open

Remove quotes for shell scripts #79

Hayao0819 opened this issue Feb 9, 2021 · 1 comment

Comments

@Hayao0819
Copy link

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.

@pixelb
Copy link
Owner

pixelb commented Feb 9, 2021

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants