-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
etcdctl v3 txn value does not honor %q formatting #6315
Comments
The %q formatted strings are only for the |
Ok I might have misunderstood the spec. But it looks like there is no easy way of escaping special characters or including whitespaces without putting quotes around, and when I do put the quotes around the quotes themselves are saved verbatim. Any recommendation around putting values that has spaces in it without putting quotes around? |
Tried it out and even the plain quote handling seems broken. It should probably behave like %q if quotes are given. Will fix and add better testing around it. Thanks for reporting this! |
Thanks for looking into this. The only workaround I can think of is to enter stdin mode and supply ^D at the end of the value. So I'd very much like the %q string support, please :) |
etcdctl txn key and value specs are given as:
To me, it is not clear what
(%q formatted string)
exactly mean here. Running the very example given, i.e.When I do
etcdctl get key1
afterwards I get"created-key1"
as a value with quotes intact. Shouldn't the value becreated-key1
without the enclosing quotes? Also, it does not seem to honor other standard %q formatting such as\
space escaping.The text was updated successfully, but these errors were encountered: