From 2d698b6e42d8dca191ac795ef5dba3bf62496eec Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 9 Apr 2010 16:13:32 -0700 Subject: Integrate bash 3.2 version This is merge of current Debian stable (Lenny) version of Bash with Vyatta changes. --- tests/new-exp.tests | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'tests/new-exp.tests') diff --git a/tests/new-exp.tests b/tests/new-exp.tests index e0c2702..78a0e7f 100644 --- a/tests/new-exp.tests +++ b/tests/new-exp.tests @@ -212,9 +212,9 @@ recho ${av[1]/??/za} expect '' recho ${av[1]//??/za} expect '' -recho ${av[1]//#??/za} +recho ${av[1]/#??/za} expect '' -recho ${av[1]//%??/za} +recho ${av[1]/%??/za} expect ' ' recho ${av[@]/*/yyy} @@ -238,17 +238,17 @@ recho ${@/%??/xx} expect '' recho ${3//??/za} expect '' -recho ${3//%??/za} +recho ${3/%??/za} expect ' ' recho ${@//??/za} expect ' ' -recho ${@//#??/za} +recho ${@/#??/za} expect ' ' recho ${@//*/yyy} expect ' ' recho ${@//a*/yyy} expect ' ' -recho ${@//%x*/yyy} +recho ${@/%x*/yyy} expect a newline echo $abmcde @@ -548,11 +548,13 @@ var=blah # these had better agree echo ${var[@]:3} echo ${var:3} -echo ${var[@]//#/--} -echo ${var//#/--} +echo ${var[@]/#/--} +echo ${var/#/--} echo ${var[@]##?} echo ${var##?} +${THIS_SH} ./new-exp6.sub + # this must be last! expect $0: 'ABXD: parameter unset' recho ${ABXD:?"parameter unset"} -- cgit v1.2.3