commit bash-20161111 snapshot

This commit is contained in:
Chet Ramey
2016-11-14 13:46:09 -05:00
parent 78a3f8a4ba
commit 216e2e9b8b
51 changed files with 1885 additions and 2255 deletions
+34
View File
@@ -0,0 +1,34 @@
# This isn't perfect behavior, but it establishes a baseline and will provide
# a way to detect behavior changes
echo a1
a[0]= a[1]=; recho "${a[@]:-y}"
unset a
echo a2
a[1]=; recho "${a[@]:-y}"
unset a
echo a3
a[0]= a[1]=x; recho "${a[@]:-y}"
unset a
echo a4
a[0]= a[1]=x; recho ${a[@]:+y}
unset a
echo p1
set '' ''
recho "${@:-y}"
shift $#
echo p2
set '' x
recho "${@:-y}"
shift $#
echo p3
set '' x
recho ${@:+y}