We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1861a8b commit e15a2acCopy full SHA for e15a2ac
lib/selector
@@ -8,7 +8,7 @@
8
: ${SELECTOR_CASEI:=false}
9
10
# split _items lines to index 1 array _aitems
11
-type mapfile >/dev/null 2>&1 && _items2array() { mapfile -t -O 1 _aitems <<<"$_items"; } || {
+type mapfile >/dev/null 2>&1 && _items2array() { _aitems=(); mapfile -t -O 1 _aitems <<<"$_items"; } || {
12
[ "$ZSH_VERSION" ] && _items2array() { set -A _aitems ${(f)_items}; } || _items2array() {
13
# ksh/bash3
14
typeset o="$IFS"
0 commit comments