hush: handle expansions in ${var?expanded_word} constructs

function                                             old     new   delta
expand_vars_to_list                                 2209    2229     +20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-05-21 17:54:46 +02:00
parent 349ef96bb5
commit 3f78cec347
3 changed files with 62 additions and 15 deletions

View File

@@ -1,26 +1,41 @@
hush: syntax error: unterminated ${name}
0
0
====
_
hush: 1: parameter null or not set
hush: 1: parameter null or not set
hush: 1: message1
hush: 1: message1
hush: 1: unset!
hush: 1: null or unset!
====
_aaaa
_aaaa
_aaaa
_aaaa
_aaaa
_aaaa
_aaaa
====
_
hush: f: parameter null or not set
hush: f: parameter null or not set
hush: f: message3
hush: f: message3
hush: f: unset!
hush: f: null or unset!
====
_
_
hush: f: parameter null or not set
_
hush: f: message4
_
hush: f: null or unset!
====
_fff
_fff
_fff
_fff
_fff