Skip to content

Commit 75b36b2

Browse files
committed
fix(tipc): remove filtered-out elements
Since the removal of elements are performed by "${params[@]/$i/}" in the above loops, the removed elements remain in the array `params` as empty elements. Therefore, we need to remove the empty elements by specifying `-X ''`. This is a regression by #887. These empty elements were originally automatically dropped by unquoted ${params[@]}. Reference: 13c28e9#diff-62e0a63a79957c52fe6b79be0a66a987da044839c6bcaeaa725fcd199c4e528fR160
1 parent cc246a1 commit 75b36b2

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
@@ -153,7 +153,7 @@ _comp_cmd_tipc()
153153
done
154154
done
155155

156-
_comp_compgen -- -W '"${params[@]}"'
156+
_comp_compgen -- -W '"${params[@]}"' -X ''
157157
;;
158158
disable)
159159
((optind++))

0 commit comments

Comments
 (0)