[PARSER] Catch variable length expansions on non-existant specials
commitcbd6165076cbbf18e68a292f80c1d454fdbedc22
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 Oct 2014 03:53:35 +0000 (30 11:53 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 Oct 2014 03:53:35 +0000 (30 11:53 +0800)
tree820aeb2bbc6067dac888bbd157119a6a23052428
parent7c245aa8ed33ba5db30eef9369d67036a05b0371
[PARSER] Catch variable length expansions on non-existant specials

Currently we only check special variable names that follow directly
after $ or ${.  So errors such as ${#&} are not caught.  This patch
fixes that by moving the is_special check to just before we print out
the special variable name.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
ChangeLog
src/parser.c