Skip to content

Commit

Permalink
fix: use grep -E instead of obsolescent egrep (#339)
Browse files Browse the repository at this point in the history
Grep 3.8 and later nag when using egrep
  • Loading branch information
ghthor authored Jun 29, 2024
2 parents c4fbd54 + a0f9d8f commit e606623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git/fallback/status_shortcuts_shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e606623

Please sign in to comment.