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/nquote.tests | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/nquote.tests') diff --git a/tests/nquote.tests b/tests/nquote.tests index b25fbe3..62d90b9 100644 --- a/tests/nquote.tests +++ b/tests/nquote.tests @@ -100,3 +100,17 @@ recho $'hello, \$"world"' recho $'hello, $\"world"' recho "hello, $"world"" + +# ansi quoting inside double-quoted command subst - bash-3.1 bug +echo $(set -- $'a b'; echo $#) +echo "$(set -- $'a b'; echo $#)" + +echo "$(echo $';foo')" + +args () +{ + for a in "$@";do echo "'$a'";done +} +unset mytab +recho "${mytab:-$'\t'}" +recho "$( args $'A\tB' )" -- cgit v1.2.3