Skip to content

Commit

Permalink
feat(_comp_variable_assignments): complete only well-known LC_*-var…
Browse files Browse the repository at this point in the history
…iables

POSIX.1-2017 standardises:
LANG, LC_ALL, LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_NUMERIC and
LC_TIME

The GNU C Library version 2.38 standardises:
LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_NAME, LC_PAPER and
LC_TELEPHONE

Signed-off-by: Christoph Anton Mitterer <[email protected]>
  • Loading branch information
calestyo committed Oct 4, 2023
1 parent 15b74b1 commit da59859
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,10 @@ _comp_variable_assignments()
TERM)
_comp_compgen_terms
;;
LANG | LC_*)
LANG | LC_ALL | LC_COLLATE | LC_CTYPE | LC_MESSAGES | LC_MONETARY | \
LC_NUMERIC | LC_TIME | \
LC_ADDRESS | LC_IDENTIFICATION | LC_MEASUREMENT | LC_NAME | \
LC_PAPER | LC_TELEPHONE)
_comp_compgen_split -- "$(locale -a 2>/dev/null)"
;;
LANGUAGE)
Expand Down

0 comments on commit da59859

Please sign in to comment.