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
  • 827
  • 2
  • 8
  • 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
  • 257,635
  • 38
  • 339
  • 400