Imported from ../bash-3.2.tar.gz.
This commit is contained in:
parent
95732b497d
commit
0628567a28
182 changed files with 17647 additions and 9477 deletions
22
tests/new-exp6.sub
Normal file
22
tests/new-exp6.sub
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# quoted null problems in versions of bash prior to 3.2
|
||||
|
||||
str='12'
|
||||
snul=$'\177'
|
||||
|
||||
recho "${str:2}"
|
||||
recho "+${str:2}"
|
||||
recho "+${snul:0:1}"
|
||||
recho "+""${str:2}"
|
||||
|
||||
recho "${str/?/$snul}"
|
||||
recho ${str/?/$snul}
|
||||
|
||||
recho "${snul/x/y}"
|
||||
recho ${snul/x/y}
|
||||
|
||||
recho "${snul/$snul/}"
|
||||
recho "${str/$str/}"
|
||||
|
||||
recho "${snul##$snul}"
|
||||
recho "${str##$str}"
|
||||
recho "${str##$nul}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue