Skip to content

Commit 40a204e

Browse files
committed
fix(xfunc ARRAY filter): protect against digits in IFS
1 parent fd5526b commit 40a204e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/ARRAY

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ _comp_xfunc_ARRAY_filter()
4848
esac
4949
done
5050

51-
shift $((OPTIND - 1))
51+
shift "$((OPTIND - 1))"
5252
if (($# != 2)); then
5353
printf 'bash_completion: %s: %s\n' "$FUNCNAME" "unexpected number of arguments: $#" >&2
5454
printf 'usage: %s %s\n' "$FUNCNAME" "[-EFGpsmxrC] ARRAY_NAME CONDITION" >&2

0 commit comments

Comments
 (0)