diff options
author | Julian Andres Klode <jak@debian.org> | 2021-11-13 19:14:22 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2021-11-13 19:14:22 +0000 |
commit | 1a2f6293565d1d371f136c8049723a665556d59c (patch) | |
tree | 1265790bab5e9c1ff7ef6a41a544522234932078 | |
parent | a52a047c425e7cdefdc92d2815a7dfb08b486cb4 (diff) | |
parent | 1191e3d4659bb19271ceb7176e364d776465407b (diff) |
Merge branch 'egrep' into 'main'
bash completion: use `grep -E` instead of `egrep`
See merge request apt-team/apt!197
-rw-r--r-- | completions/bash/apt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/bash/apt b/completions/bash/apt index bc2a7efbe..7cf54df1f 100644 --- a/completions/bash/apt +++ b/completions/bash/apt @@ -62,7 +62,7 @@ _apt() # Complete a -t<SPACE><TAB> case $prev in -t|--target-release) - COMPREPLY=( $( compgen -W "$(apt-cache policy | egrep -o 'a=[^,]*|n=[^,]*' | cut -f2- -d= | sort -u)" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "$(apt-cache policy | grep -Eo 'a=[^,]*|n=[^,]*' | cut -f2- -d= | sort -u)" -- "$cur" ) ) return 0 ;; esac |