1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-11 04:58:19 +03:00
Cyril Roelandt c3ea065ce2 Fix zsh completion for "localectl set-locale"
When running:

    $ localectl set-locale LC_MESSAGES=<TAB>

One is prompted with a list of locale fields instead of the list of
valid locales. This is because by calling "compset -P1 '*='", we modify
the $PREFIX special parameter before testing whether it contains an
equal sign. Therefore

    if [[ -prefix 1 *\= ]]

is always false, and we always suggest a list of locale fields to the
user.

Fixes: 
(cherry picked from commit 3c6fefd8791940c4ea3b15ed68458868edfbc243)
(cherry picked from commit a2ad24199490b421259e5045e7061dbebabf86e2)
(cherry picked from commit 0baf6bc34d649d6483c5f334b99d53f9f4450d78)
2023-07-10 22:01:38 +01:00
..