Skip to content

Commit 502b718

Browse files
author
Richard Alpe
committed
tipc: fix missing last char in link name completion
In this commit we fix a but where the last character of a tab completed link name where missing. Example of behaviour prior to this commit: $ tipc link get priority link <TAB> 1.1.2:eth3-1.1.1:eth broadcast-lin
1 parent 1e778fc commit 502b718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/tipc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ _tipc_link() {
6464
elif [[ $cword -eq $optind+1 ]]; then
6565
# awk drops link state and last trailing :
6666
local links=$(tipc link list 2>/dev/null | \
67-
awk '{print substr($1, 0, length($1)-1)}')
67+
awk '{print substr($1, 0, length($1))}')
6868
if [[ $filter == "peers" ]]; then
6969
links=$(command sed '/broadcast-link/d' <<<"$links")
7070
fi

0 commit comments

Comments
 (0)