File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 99#
1010# status 0 .... when the element should be preserved
1111# status 1 .... when the element should be removed
12+ # status 2 .... when the usage of the predicate is wrong
1213# status 27 ... when the loop should be canceled. All the remaining
1314# elements will be preserved regardless of the presence of
1415# option `-r'.
1516#
16- # The other exit status will cancel the array filtering. If this is an
17- # existing command name, the function is called with the value of the array
18- # element. Otherwise, this shall be the shell command that tests the
19- # array-element value stored in the shell variable "value".
17+ # The other exit status is reserved and cancel the array filtering with an
18+ # error message, and the function returns with the exit status 2. If this is
19+ # an existing command name, the command is called with the value of the array
20+ # element being specified as the first command argument. Otherwise, this
21+ # shall be a shell command that tests the array-element value stored in the
22+ # environment variable "value".
2023#
2124# Options:
2225#
@@ -134,7 +137,7 @@ _comp_xfunc_ARRAY_filter()
134137 27) break ;;
135138 * )
136139 printf ' bash_completion: %s: %s\n' " $FUNCNAME " \
137- " the filter condition broken '${_comp_local_pattype: +-$_comp_local_pattype } $2 '" >&2
140+ " filter condition broken '${_comp_local_pattype: +-$_comp_local_pattype } $2 '" >&2
138141 return 2
139142 ;;
140143 esac
You can’t perform that action at this time.
0 commit comments