diff options
| author | avery <avrypromo@pm.me> | 2022-08-03 18:31:01 -0700 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2022-08-04 08:59:01 +0200 |
| commit | ebdf3bd376cbc18ead1e588c3b6f982260f9889b (patch) | |
| tree | 06fce722bca7cbf5581ad0cef5a6563ba228d1e3 /src/nmcli/nmcli-completion | |
| parent | 3ce34510402517dfdffb8fc541c97ff8a457f0b9 (diff) | |
| download | NetworkManager-ebdf3bd376cbc18ead1e588c3b6f982260f9889b.tar.gz | |
nmcli-completion: fix support for embedded quote characters
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/455
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1325
Fixes: 9d2290135ce5 ('cli: make nmcli do its own command completion')
Diffstat (limited to 'src/nmcli/nmcli-completion')
| -rw-r--r-- | src/nmcli/nmcli-completion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nmcli/nmcli-completion b/src/nmcli/nmcli-completion index 83ec1e3cb8..f2de7b675a 100644 --- a/src/nmcli/nmcli-completion +++ b/src/nmcli/nmcli-completion @@ -84,7 +84,7 @@ _nmcli() # no quotes in front, escaping _everything_ # [ ]bla'bla"bla\bla bla --> [ ]bla\'bla\"bla\\bla\ bla entry="${entry//\\/\\\\}" - entry="${entry//\'/\'}" + entry="${entry//\'/\\\'}" entry="${entry//\"/\\\"}" entry="${entry// /\\ }" entry="${entry//\(/\\(}" |
