mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-06 20:00:49 +02:00
commit bash-20161111 snapshot
This commit is contained in:
@@ -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}
|
||||
Reference in New Issue
Block a user