From 1aca4e1da6a2fd845340c16797c0ee229e97a0c0 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 24 Jun 2021 10:02:01 +0100 Subject: bash: Sort completions in LC_ALL=C order Where the order doesn't matter, a deterministic order minimizes conflicts. Signed-off-by: Simon McVittie --- completions/bash/bwrap | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/completions/bash/bwrap b/completions/bash/bwrap index b03316a..4ca0c26 100644 --- a/completions/bash/bwrap +++ b/completions/bash/bwrap @@ -7,23 +7,25 @@ _bwrap() { local cur prev words cword _init_completion || return + # Please keep sorted in LC_ALL=C order local boolean_options=" --as-pid-1 --clearenv --help --new-session + --unshare-all --unshare-cgroup --unshare-cgroup-try - --unshare-user - --unshare-user-try - --unshare-all --unshare-ipc --unshare-net --unshare-pid + --unshare-user + --unshare-user-try --unshare-uts --version " + # Please keep sorted in LC_ALL=C order local options_with_args=" $boolean_optons --args -- cgit v1.2.1