Skip to content

Commit

Permalink
tipc: use bash here string instead of echo
Browse files Browse the repository at this point in the history
Use bash here string redirect instead of pipeing via echo when
processing raw link data.
  • Loading branch information
Richard Alpe committed Apr 13, 2016
1 parent 935a98d commit d03425e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/tipc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ _tipc_link() {
# awk drops link state and last trailing :
local links=$(tipc link list | awk '{print substr($1, 0, length($1)-1)}')
if [[ $filter == "peers" ]]; then
links=$(echo "$links" | sed '/broadcast-link/d')
links=$(sed '/broadcast-link/d' <<<"$links")
fi
COMPREPLY=( $( compgen -W '$links' -- $cur ) )
fi
Expand Down

0 comments on commit d03425e

Please sign in to comment.