awk ne supporte pas \s
This commit is contained in:
parent
1152c2f4eb
commit
56c305af66
|
@ -1144,7 +1144,7 @@ _known_hosts_real()
|
|||
if [ ${#kh[@]} -gt 0 ]; then
|
||||
# FS needs to look for a comma separated list
|
||||
COMPREPLY=( "${COMPREPLY[@]}" $( awk 'BEGIN {FS=","}
|
||||
/^\s*[^|\#]/ {for (i=1; i<=2; ++i) { \
|
||||
/^[[:blank:]]*[^|\#]/ {for (i=1; i<=2; ++i) { \
|
||||
gsub(" .*$", "", $i); \
|
||||
gsub("[\\[\\]]", "", $i); \
|
||||
gsub(":[0-9]+$", "", $i); \
|
||||
|
|
Loading…
Reference in New Issue