diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-19 19:09:15 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-19 19:09:15 +0200 |
commit | 7914d17468dad5a4b2d018e54ef02406414fe975 (patch) | |
tree | b0bc4357c022ad383b645f79906d44f1f254047e /bash_completion | |
parent | 0b6baead5c270c362db3c84eb25fb46b5285827f (diff) | |
download | bash-completion-7914d17468dad5a4b2d018e54ef02406414fe975.tar.gz |
Avoid use of POSIX character classes with awk for mawk compatibility.
Diffstat (limited to 'bash_completion')
-rw-r--r-- | bash_completion | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash_completion b/bash_completion index c9144988..3a3e69ca 100644 --- a/bash_completion +++ b/bash_completion @@ -598,7 +598,7 @@ _available_interfaces() fi COMPREPLY=( $( eval PATH="$PATH:/sbin" $cmd 2>/dev/null | \ - awk '/^[^[:space:]]/ { print $1 }' ) ) + awk '/^[^ \t]/ { print $1 }' ) ) COMPREPLY=( $( compgen -W '${COMPREPLY[@]/%[[:punct:]]/}' -- "$cur" ) ) } @@ -1657,7 +1657,7 @@ _filedir_xspec() _expand || return 0 # get first exclusion compspec that matches this command - xspec=$( awk "/^complete[[:space:]]+.*[[:space:]]${1##*/}([[:space:]]|\$)/ { print \$0; exit }" \ + xspec=$( awk "/^complete[ \t]+.*[ \t]${1##*/}([ \t]|\$)/ { print \$0; exit }" \ $BASH_COMPLETION ) # prune to leave nothing but the -X spec xspec=${xspec#*-X } |