From 41fe5906072309ea9fc98d285028e69fab754fda Mon Sep 17 00:00:00 2001 From: Aidan Denlinger <47428697+aidandenlinger@users.noreply.github.com> Date: Wed, 13 Sep 2023 09:38:09 -0700 Subject: [PATCH] fix(completions): remove stray backslashes Grep 3.8 causes warnings on regular expressions with stray backslashes. --- completions/bash/eza | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completions/bash/eza b/completions/bash/eza index 65e72e0c..0194ab10 100644 --- a/completions/bash/eza +++ b/completions/bash/eza @@ -38,13 +38,13 @@ _eza() # _parse_help doesn’t pick up short options when they are on the same line than long options --*) # colo[u]r isn’t parsed correctly so we filter these options out and add them by hand - parse_help=$( eza --help | grep -oE ' (\-\-[[:alnum:]@-]+)' | tr -d ' ' | grep -v '\-\-colo' ) + parse_help=$( eza --help | grep -oE ' (--[[:alnum:]@-]+)' | tr -d ' ' | grep -v '\--colo' ) completions=$( echo '--color --colour --color-scale --colour-scale' $parse_help ) COMPREPLY=( $( compgen -W "$completions" -- "$cur" ) ) ;; -*) - completions=$( eza --help | grep -oE ' (\-[[:alnum:]@])' | tr -d ' ' ) + completions=$( eza --help | grep -oE ' (-[[:alnum:]@])' | tr -d ' ' ) COMPREPLY=( $( compgen -W "$completions" -- "$cur" ) ) ;;