mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-11 04:58:19 +03:00
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: #27955 (cherry picked from commit 3c6fefd8791940c4ea3b15ed68458868edfbc243) (cherry picked from commit a2ad24199490b421259e5045e7061dbebabf86e2) (cherry picked from commit 0baf6bc34d649d6483c5f334b99d53f9f4450d78)