Imported from ../bash-4.0.tar.gz.

This commit is contained in:
Jari Aalto 2009-02-19 22:21:29 +00:00
commit 17345e5ad2
134 changed files with 74214 additions and 4584 deletions

View file

@ -70,3 +70,30 @@ echo ${@,,[rstlne]}
echo ${@^?}
echo ${@^^?}
# make sure that multiple words in the string are handled as other expansions
TEXT="Be Conservative in what you send and Liberal in what you accept"
TEXT2="be conservative in what you send and liberal in what you accept"
declare -u foo
foo=$TEXT
echo $foo
declare -l bar
bar=$TEXT
echo $bar
declare -c qux
qux=$TEXT
echo $qux
qux=$TEXT2
echo $qux
echo ${TEXT,}
echo ${TEXT,,}
echo ${TEXT^}
echo ${TEXT^^}
echo ${TEXT2^}
echo ${TEXT2^^}