Imported from ../bash-4.0.tar.gz.
This commit is contained in:
parent
3185942a52
commit
17345e5ad2
134 changed files with 74214 additions and 4584 deletions
|
|
@ -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^^}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue