mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
fix typo bash.html.markdown
This commit is contained in:
parent
6955861bba
commit
7f1dc6ce2b
@ -91,7 +91,7 @@ echo ${#Variable} # => 11
|
|||||||
# Indirect expansion
|
# Indirect expansion
|
||||||
OtherVariable="Variable"
|
OtherVariable="Variable"
|
||||||
echo ${!OtherVariable} # => Some String
|
echo ${!OtherVariable} # => Some String
|
||||||
# This will expand the value of the OtherVariable
|
# This will expand the value of OtherVariable
|
||||||
|
|
||||||
# Default value for variable
|
# Default value for variable
|
||||||
echo ${Foo:-"DefaultValueIfFooIsMissingOrEmpty"}
|
echo ${Foo:-"DefaultValueIfFooIsMissingOrEmpty"}
|
||||||
|
Loading…
Reference in New Issue
Block a user