From a0f9d8fb699272217187a26bff9d1a6e0019c6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mirko=20Gr=C3=B6nroos?= Date: Wed, 8 May 2024 16:44:00 +0300 Subject: [PATCH] fix: use grep -E instead of obsolescent egrep Grep 3.8 and later nag when using egrep --- lib/git/fallback/status_shortcuts_shell.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/fallback/status_shortcuts_shell.sh b/lib/git/fallback/status_shortcuts_shell.sh index 0a103870..9b48d39c 100755 --- a/lib/git/fallback/status_shortcuts_shell.sh +++ b/lib/git/fallback/status_shortcuts_shell.sh @@ -140,7 +140,7 @@ $pad$c_dark [$c_rst$e$c_dark] $c_group$relative$c_rst" # Export numbered variables in the order they are displayed. # (Exports full path, but displays relative path) # fetch first file (in the case of oldFile -> newFile) and remove quotes - local filename=$(eval echo $(echo ${stat_file[$i]} | egrep -o '^"([^\\"]*(\\.[^"]*)*)"|^[^ ]+')) + local filename=$(eval echo $(echo ${stat_file[$i]} | grep -E -o '^"([^\\"]*(\\.[^"]*)*)"|^[^ ]+')) export $git_env_char$e="$project_root/$filename" let e++ done