Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

escape/write a quote in a value? #3

Open
AlexMhr opened this issue Feb 9, 2024 · 2 comments
Open

escape/write a quote in a value? #3

AlexMhr opened this issue Feb 9, 2024 · 2 comments

Comments

@AlexMhr
Copy link

AlexMhr commented Feb 9, 2024

Awesome util, thank you.

Is there a way to escape/write a double quote into a value for example:

--key=key --value="Value One" "Value Two"
will result in
key=Value One

--key=key --value=""Value One" "Value Two""
key="Value One

--key=key --value=""Value One" "Value Two""
key="Value One\

--key=key "--value="Value One" "Value Two""
key=

I don't know if I've missed it (how to?) or if it's missing (possible add)?

Thanks,
Alex

@M4RCK5
Copy link

M4RCK5 commented Apr 22, 2024

if u are using windows command line to escape quotes u can do ^", that should let u send that quote to the key value (in theory, havent tried it with the tool yet but yeah thats how u escape the double quotes in cmd/batch scripts)

@AlexMhr
Copy link
Author

AlexMhr commented Apr 23, 2024

Hey thanks for the response,

Alas,

--Section=Section --Key=Key --Value=^"Value1^" ^"Value2^"

becomes

[Section]
Key=Value1

drat.

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

No branches or pull requests

2 participants