Created
June 5, 2017 01:27
-
-
Save element6/6d419dcc4f1413f96c7aca1bb6788122 to your computer and use it in GitHub Desktop.
use env var in command line
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=${VARIABLE:-default} | |
Or, which will assign to VARIABLE as well: | |
FOO=${VARIABLE:=default} | |
LOC=; eval "echo ${LOC:=en}; echo $LOC" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment