Imported from ../bash-4.0-rc1.tar.gz.
This commit is contained in:
parent
f1be666c7d
commit
3185942a52
666 changed files with 188710 additions and 54674 deletions
14
tests/array7.sub
Normal file
14
tests/array7.sub
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# these didn't work in versions of bash before bash-4.0
|
||||
|
||||
LNAME=nordholz
|
||||
|
||||
echo ${LNAME[$(( 0 ))]//h/!}
|
||||
echo ${LNAME[$(( 2 ))]//h/!}
|
||||
|
||||
echo ${LNAME[$(( 0 ))]##??}
|
||||
echo ${LNAME[$(( 2 ))]##??}
|
||||
|
||||
echo ${LNAME[$(( 0 ))]:2}
|
||||
echo ${LNAME[$(( 0 ))]:2:4}
|
||||
echo ${LNAME[$(( 2 ))]:2}
|
||||
echo ${LNAME[$(( 2 ))]:2:4}
|
||||
Loading…
Add table
Add a link
Reference in a new issue