0

I was reading the answer here: How to change rvm install location

it keeps referencing the below variable:

"${rvm_path-$HOME/.rvm}/scripts/rvm"

I know that I have $rvm_path and $HOME set, but I don't understand what the whole excerpt means.

Community
  • 1
  • 1
TrolliOlli
  • 909
  • 2
  • 10
  • 18

1 Answers1

1

This is a parameter expansion.

If a variable named rvm_path exists, it is expanded. Otherwise, $HOME/.rvm is used instead. Regardless, /scripts/rvm is appended to the result.

Charles Duffy
  • 280,126
  • 43
  • 390
  • 441