mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
zsh-completion: Do not interpret escape sequences in _filter_units_by_property
This makes all functions that rely on _filter_units_by_property() (like _systemctl_{stop,kill,try_restart}) work with unit names that contain backslash escaped sequences (like automount units with spaces that are escaped to "\x20").
This commit is contained in:
parent
eb89bc1d25
commit
e37b56c735
@ -137,7 +137,7 @@ _filter_units_by_property() {
|
||||
unit=${units[i]}
|
||||
prop=${(f)"$(_call_program units "$service show --no-pager --property="$property" ${unit} 2>/dev/null")"}
|
||||
if [[ "${prop}" = "$property=$value" ]]; then
|
||||
echo " ${unit}"
|
||||
echo -E - " ${unit}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user