0

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}}

source

Sh eldeeb
  • 979
  • 1
  • 9
  • 25

0 Answers0