From 7914d17468dad5a4b2d018e54ef02406414fe975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 19 Jan 2010 19:09:15 +0200 Subject: Avoid use of POSIX character classes with awk for mawk compatibility. --- bash_completion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash_completion') 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 } -- cgit v1.2.1