Bash-4.4 distribution sources and documentation
This commit is contained in:
parent
30a978b7d8
commit
a0c0a00fc4
588 changed files with 130746 additions and 80164 deletions
29
tests/dollar-at-star6.sub
Normal file
29
tests/dollar-at-star6.sub
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
OIFS="$IFS"
|
||||
arr=(a b c)
|
||||
|
||||
recho ${arr[@]@Q}
|
||||
recho "${arr[@]@Q}"
|
||||
|
||||
IFS="'"
|
||||
recho ${arr[@]@Q}
|
||||
recho "${arr[@]@Q}"
|
||||
IFS="$OIFS"
|
||||
|
||||
arr=("'a'" "'b'" "'c'")
|
||||
|
||||
IFS="'"
|
||||
recho ${arr[@]}
|
||||
recho "${arr[@]}"
|
||||
IFS="$OIFS"
|
||||
|
||||
IFS="'"
|
||||
a="'a'"
|
||||
recho $a
|
||||
recho "$a"
|
||||
IFS="$OIFS"
|
||||
|
||||
set -- "'a'" "'b'" "'c'"
|
||||
|
||||
IFS="'"
|
||||
recho "${@}"
|
||||
recho "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue