]> err.no Git - systemd/commit
bash-completion: avoid losing backslashes in unit names
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 9 May 2012 07:18:44 +0000 (09:18 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Wed, 9 May 2012 07:26:55 +0000 (09:26 +0200)
commitf3b17661550da58231139e6aa37848172a385fd2
treefc2b38a5a77a16fdac18b536984132f7a2ed9950
parent07f74a7ebde5acf098ab72dc49a3371731ffb476
bash-completion: avoid losing backslashes in unit names

Use 'read -r' everywhere to consider backslashes as parts of the input line.
Single-quote the arguments to 'compgen -W' to avoid immediate expansion.
compgen itself will expand the argument.

Fixes a possible reason for "Failed to issue method call: Unknown unit"
after requesting completion.

https://bugzilla.redhat.com/show_bug.cgi?id=814966
bash-completion/systemd-bash-completion.sh