Merge pull request #9954 from spzala/etcdctlput

etcdctl: value should not be provided after \r
release-3.4
Gyuho Lee 2018-07-27 13:50:49 -07:00 committed by GitHub
commit f337e1b363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -81,6 +81,19 @@ Insert '--' for workaround:
./etcdctl put -- <key> <value>
```
Providing \<value\> in a new line after using `carriage return` is not supported and etcdctl may hang in that case. For example, following case is not supported:
```bash
./etcdctl put <key>\r
<value>
```
A \<value\> can have multiple lines or spaces but it must be provided with a double-quote as demonstrated below:
```bash
./etcdctl put foo "bar1 2 3"
```
### GET [options] \<key\> [range_end]
GET gets the key or a range of keys [key, range_end) if range_end is given.