n_shexp_parse_token(): better control flow/error message $var substitution