fix shell use of strtok_r

pass the pointer to the remaining tokens to handler instead