Imported from ../bash-3.0.tar.gz.
This commit is contained in:
parent
7117c2d221
commit
b80f6443b6
400 changed files with 69247 additions and 13346 deletions
31
tests/dollar-star1.sub
Normal file
31
tests/dollar-star1.sub
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
set -- a b c
|
||||
x=(a b c); IFS='|'
|
||||
|
||||
echo "${*/#/x}"
|
||||
echo "${x[*]/#/x}"
|
||||
|
||||
echo "$*"
|
||||
echo "${x[*]}"
|
||||
|
||||
echo "$@"
|
||||
echo "${x[@]}"
|
||||
|
||||
echo "${@/#/x}"
|
||||
echo "${x[@]/#/x}"
|
||||
|
||||
echo "${*:1:2}"
|
||||
echo "${x[*]:1:2}"
|
||||
|
||||
echo "${@:1:2}"
|
||||
echo "${x[@]:1:2}"
|
||||
|
||||
IFS=$' \t\n'
|
||||
set -- xa xb xc
|
||||
x=(xa xb xc)
|
||||
IFS='|'
|
||||
|
||||
echo "${*#x}"
|
||||
echo "${x[*]#x}"
|
||||
|
||||
echo "$*"
|
||||
echo "${x[*]}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue