awk ne supporte pas \s

This commit is contained in:
Jephté Clain 2015-12-31 12:36:43 +04:00
parent 1152c2f4eb
commit 56c305af66
1 changed files with 1 additions and 1 deletions

View File

@ -1144,7 +1144,7 @@ _known_hosts_real()
if [ ${#kh[@]} -gt 0 ]; then if [ ${#kh[@]} -gt 0 ]; then
# FS needs to look for a comma separated list # FS needs to look for a comma separated list
COMPREPLY=( "${COMPREPLY[@]}" $( awk 'BEGIN {FS=","} COMPREPLY=( "${COMPREPLY[@]}" $( awk 'BEGIN {FS=","}
/^\s*[^|\#]/ {for (i=1; i<=2; ++i) { \ /^[[:blank:]]*[^|\#]/ {for (i=1; i<=2; ++i) { \
gsub(" .*$", "", $i); \ gsub(" .*$", "", $i); \
gsub("[\\[\\]]", "", $i); \ gsub("[\\[\\]]", "", $i); \
gsub(":[0-9]+$", "", $i); \ gsub(":[0-9]+$", "", $i); \