[tracker: 1/2] bash-completion: Replace deprecated egrep usage with grep -E
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 1/2] bash-completion: Replace deprecated egrep usage with grep -E
- Date: Sat, 1 Oct 2022 08:04:50 +0000 (UTC)
commit 189794dbc0f16e432c8c8884b0aa71c5e893e937
Author: Bjørn Lie <bjorn lie gmail com>
Date: Sun Sep 25 19:41:48 2022 +0000
bash-completion: Replace deprecated egrep usage with grep -E
src/tracker/bash-completion/tracker | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker/bash-completion/tracker b/src/tracker/bash-completion/tracker
index 568ed7872..544008bd1 100644
--- a/src/tracker/bash-completion/tracker
+++ b/src/tracker/bash-completion/tracker
@@ -8,7 +8,7 @@ tracker3_cmds()
cur=${COMP_WORDS[COMP_CWORD]}
if [[ $cword == 1 ]]; then
- possible=`tracker3 | egrep " [a-z].* " | awk '{ print ($1) }' | sort | uniq`
+ possible=`tracker3 | grep -E " [a-z].* " | awk '{ print ($1) }' | sort | uniq`
COMPREPLY=( $(compgen -W "$possible" -- $cur) )
return 0;
fi
@@ -37,7 +37,7 @@ tracker3_cmds()
fi
if [[ -z $cur ]] || [[ $cur == -* ]]; then
- possible=`${words[0]} ${words[1]} -h | egrep "^ *-" | sed "s/^ *//" | sed "s/ [^-].*//" | sed
"s/,/\n/g" | sed "s/=.*//"`
+ possible=`${words[0]} ${words[1]} -h | grep -E "^ *-" | sed "s/^ *//" | sed "s/ [^-].*//" | sed
"s/,/\n/g" | sed "s/=.*//"`
COMPREPLY=( $(compgen -W "$possible" -- $cur) )
fi
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]