]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/casemod.tests
Imported from ../bash-4.0.tar.gz.
[thirdparty/bash.git] / tests / casemod.tests
index e1e3a3ee5d46fdd0da3b6d0afada7267c5be0fc1..3c7ad23feebc8732292358fc45b2f8823274048f 100644 (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^^}