Skip to content

Commit

Permalink
extras/bash-completion: use grep -E instead of egrep
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Dec 15, 2023
1 parent b3a69eb commit 379fc41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extras/completions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function _clingon_app_completions() {
_init_completion -s || return

local _suggestions=$( "${words[@]:0:${cword}}" --bash-completions )
local _options=$( egrep '^-' <<<${_suggestions} )
local _sub_commands=$( egrep -v '^-' <<<${_suggestions} )
local _options=$( grep -E '^-' <<<${_suggestions} )
local _sub_commands=$( grep -v -E '^-' <<<${_suggestions} )

if [[ "${cur}" == "-"* ]]; then
# Options only
Expand Down

0 comments on commit 379fc41

Please sign in to comment.