I want to use a variable or another one like this
> echo ${project||PWD}
same as used in programming languages like javascript
console.log(x||y)
solving
echo ${project:-${PWD}}
//or: assign the default value to the variable
${project:=${PWD}}
I want to use a variable or another one like this
> echo ${project||PWD}
same as used in programming languages like javascript
console.log(x||y)
solving
echo ${project:-${PWD}}
//or: assign the default value to the variable
${project:=${PWD}}