Skip to content
Myr

[bash,zsh] Work around mawk 1.3.3-20090705 not supporting the POSIX brackets

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Koichi Murase · committed by Junegunn Choi · parent c166eab · Browse files · 2 files+8 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−2 removed

  • other:+8 added−2 removed

2 files+8 added−2 removed

modified:shell/completion.bash+4 added-1 removed
527 unmodified lines
528 ' ~/.ssh/known_hosts 2> /dev/null529 ) \530 <(531 __fzf_exec_awk '532 # Note: mawk <= 1.3.3-20090705 does not support the POSIX brackets of533 # the form [[:blank:]], and Ubuntu 18.04 LTS still uses this534 # 16-year-old mawk unfortunately. We need to use [ \t] instead.532 /^[[:blank:]]*(#|$)|0\.0\.0\.0/ { next }535 /^[ \t]*(#|$)|0\.0\.0\.0/ { next }536 {537 sub(/#.*/, "")538 for (i = 2; i <= NF; i++)539 print $i
162 unmodified lines
modified:shell/completion.zsh+4 added-1 removed
305 unmodified lines
306 ' ~/.ssh/known_hosts 2> /dev/null307 ) \308 <(309 __fzf_exec_awk '310 # Note: mawk <= 1.3.3-20090705 does not support the POSIX brackets of311 # the form [[:blank:]], and Ubuntu 18.04 LTS still uses this312 # 16-year-old mawk unfortunately. We need to use [ \t] instead.310 /^[[:blank:]]*(#|$)|0\.0\.0\.0/ { next }313 /^[ \t]*(#|$)|0\.0\.0\.0/ { next }314 {315 sub(/#.*/, "")316 for (i = 2; i <= NF; i++)317 print $i
169 unmodified lines