diff options
author | Felipe Sateler <fsateler@users.noreply.github.com> | 2016-04-19 01:23:01 -0300 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-04-19 00:23:01 -0400 |
commit | 673fca32be277e6b73ed5c114768e4c64370e16e (patch) | |
tree | d107dc6c6c8aadcb0f2e829f62f6b1fbe3a84d85 /shell-completion/zsh/_networkctl | |
parent | c54318c66f542b0713fdcadfd6fc6fb1fffe0a78 (diff) |
zsh-completion: remove non-portable uses of \s in awk (#3063)
Diffstat (limited to 'shell-completion/zsh/_networkctl')
-rw-r--r-- | shell-completion/zsh/_networkctl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/zsh/_networkctl b/shell-completion/zsh/_networkctl index a47e967f66..61f173b78e 100644 --- a/shell-completion/zsh/_networkctl +++ b/shell-completion/zsh/_networkctl @@ -14,7 +14,7 @@ _networkctl_command(){ local -a _links cmd="${${_networkctl_cmds[(r)$words[1]:*]%%:*}}" if [ $cmd = "status" ]; then - _links=( "${(foa)$(networkctl list --no-legend | awk 'BEGIN{OFS=":"} /^\s/ {sub(/[[ \t]+/, ""); print $2,$0}' 2>/dev/null)}" ) + _links=( "${(foa)$(networkctl list --no-legend | awk 'BEGIN{OFS=":"} {sub(/[[ \t]+/, ""); print $2,$0}' 2>/dev/null)}" ) if [[ -n "$_links" ]]; then _describe -t links 'links' _links else |