Avoid extended regexps in grep, they are not portable

darcs-hash:20060310134350-ac50b-7138e53ed815986ccb78e909f50c9939382a1e89.gz
This commit is contained in:
axel 2006-03-10 23:43:50 +10:00
parent 883ce6e440
commit 73370f5f39

View file

@ -54,9 +54,8 @@ end
# Completions for the shell and it's builtin commands and functions # Completions for the shell and it's builtin commands and functions
# #
set -l __fish_help_desc (_ "Display help and exit") for i in (builtin -n|grep -v '\(while\|for\|if\|function\|switch\)' )
for i in (builtin -n|grep -vE '(while|for|if|function|switch)' ) complete -c $i -s h -l help -d "Display help and exit"
complete -c $i -s h -l help -d $__fish_help_desc
end end