fix scoping of local var in strtok

This commit is contained in:
Jaromil 2015-08-24 17:27:01 +02:00
parent c8c521309e
commit c66c7b3be3
1 changed files with 2 additions and 1 deletions

3
zuper
View File

@ -273,7 +273,8 @@ strtok() {
ckreq || return $?
tok=()
f=0
local f=0
local c=0
for c in {1..${#_string}}; do
if [[ "${_string[(e)$c]}" == "$_delim" ]]; then
# check if not empty