diff options
author | 2011-07-28 16:30:52 +0800 | |
---|---|---|
committer | 2011-08-02 15:52:18 +0800 | |
commit | 67e3dcb6e274e7f3764d622e8c4f2ac634784441 (patch) | |
tree | dda7b654e4d151b63efc24c2a80a140f74a6bcfd /bashast | |
parent | Parser: support process sub as redirection dest (diff) | |
download | libbash-67e3dcb6e274e7f3764d622e8c4f2ac634784441.tar.gz libbash-67e3dcb6e274e7f3764d622e8c4f2ac634784441.tar.bz2 libbash-67e3dcb6e274e7f3764d622e8c4f2ac634784441.zip |
Parser: support ${?}
Diffstat (limited to 'bashast')
-rw-r--r-- | bashast/bashast.g | 1 | ||||
-rw-r--r-- | bashast/gunit/param_main.gunit | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/bashast/bashast.g b/bashast/bashast.g index d09138a..f2d5c3c 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -874,6 +874,7 @@ variable_name | DOLLAR | TIMES | AT + | QMARK | POUND; variable_name_no_digit diff --git a/bashast/gunit/param_main.gunit b/bashast/gunit/param_main.gunit index e73caf3..422b7ac 100644 --- a/bashast/gunit/param_main.gunit +++ b/bashast/gunit/param_main.gunit @@ -57,6 +57,7 @@ variable_reference: "$*" -> (VAR_REF *) "${@}" -> (VAR_REF @) "${#}" -> (VAR_REF #) +"${?}" -> (VAR_REF ?) "$#" -> (VAR_REF #) "${!foo}" -> (VAR_REF (VAR_REF foo)) "${!#}" -> (VAR_REF (VAR_REF #)) |