aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-07-20 20:26:22 +0800
committerMu Qiao <qiaomuf@gentoo.org>2011-07-20 23:15:45 +0800
commitee63385cbb090865646a14fd2c0dd9fd828ad525 (patch)
tree641d695bb9a398a39c83656dfc500745be65722f /bashast/gunit
parentWalker: reimplement runtime for parameter expansion (diff)
downloadlibbash-ee63385cbb090865646a14fd2c0dd9fd828ad525.tar.gz
libbash-ee63385cbb090865646a14fd2c0dd9fd828ad525.tar.bz2
libbash-ee63385cbb090865646a14fd2c0dd9fd828ad525.zip
Parser: fix delete expansion
Diffstat (limited to 'bashast/gunit')
-rw-r--r--bashast/gunit/param_main.gunit2
1 files changed, 1 insertions, 1 deletions
diff --git a/bashast/gunit/param_main.gunit b/bashast/gunit/param_main.gunit
index f2b8cbb..677b566 100644
--- a/bashast/gunit/param_main.gunit
+++ b/bashast/gunit/param_main.gunit
@@ -42,7 +42,7 @@ variable_reference:
"${foo%bar}" -> (VAR_REF (LAZY_REMOVE_AT_END foo (STRING bar)))
"${foo%%bar}" -> (VAR_REF (REPLACE_AT_END foo (STRING bar)))
"${foo%; *}" -> (VAR_REF (LAZY_REMOVE_AT_END foo (STRING ; MATCH_ALL)))
-//"${foo%/}" -> (VAR_REF (LAZY_REMOVE_AT_END foo (STRING /)))
+"${foo%/}" -> (VAR_REF (LAZY_REMOVE_AT_END foo (STRING /)))
"${this/is/pattern}"->(VAR_REF (REPLACE_FIRST this (STRING is) (STRING pattern)))
//Test positional/special parameters
"$1" -> (VAR_REF 1)