Created
March 17, 2015 19:07
-
-
Save rodrigotassinari/ca950eae2bd056693e18 to your computer and use it in GitHub Desktop.
bash syntax to define defaults if no environment values are set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ FOO=1234 | |
$ echo ${FOO} ${BAR} | |
> 1234 | |
$ echo ${FOO:-555} ${BAR:-666} | |
> 1234 666 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment