Environment Variables
Last updated
Was this helpful?
Was this helpful?
echo `set myVar=cheese && echo \${myVar}`
env show myVar myDefault> env set color=red
> env set number=2
> env show
{
"number":"2",
"color":"red"
}> env show | foreach "echo 'The var \${item} is set to \${value}'"
The var number is set to 2
The var color is set to red> echo "set inrecipe=true; env debug" | recipe
[
{
"environment":{},
"context":"env debug"
},
{
"environment":{
"inRecipe":"true"
},
"context":"recipe"
},
{
"environment":{
"number":"2",
"color":"red"
},
"context":"Global Shell"
}
]