diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2021-11-13 00:29:05 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2021-11-13 00:29:05 +0200 |
commit | 1191e3d4659bb19271ceb7176e364d776465407b (patch) | |
tree | 1265790bab5e9c1ff7ef6a41a544522234932078 /completions | |
parent | a52a047c425e7cdefdc92d2815a7dfb08b486cb4 (diff) |
bash completion: use `grep -E` instead of `egrep`
`egrep` has been deprecated in GNU grep since 2007, and in current post
3.7 Git it has been made to emit obsolescence warnings:
https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1
Diffstat (limited to 'completions')
-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 |