rvm / ubuntu_rvm

Ubuntu package for RVM
https://launchpad.net/~rael-gc/+archive/ubuntu/rvm
Apache License 2.0
694 stars 84 forks source link

Fish(?) - missing end to balance this if statement #82

Closed cyrus01337 closed 9 months ago

cyrus01337 commented 1 year ago

Description

Upon sourcing the RVM script via source /etc/profile.d/rvm.sh and piping through Bash (source /etc/profile.d/rvm.sh | bash), a Bash parsing error is received. This also causes RVM to incompletely install, and not show up as a command.

Steps to reproduce

  1. Have a Ubuntu 23.04 machine with Fish 3.6.0 installed - this error was reproduced with Ubuntu Budgie specifically, though I would think a DE wouldn't affect installation
  2. Go through the setup
  3. Get stuck during installation because Bash script cannot be run

Expected behavior

The source file to be run, and RVM to be found as a command.

Actual behavior

Environment info

───────┬──────────────────────────────────────────────────
       │ File: /etc/lsb-release
───────┼──────────────────────────────────────────────────
   1   │ DISTRIB_ID=Ubuntu
   2   │ DISTRIB_RELEASE=23.04
   3   │ DISTRIB_CODENAME=lunar
   4   │ DISTRIB_DESCRIPTION="Ubuntu 23.04"
───────┴──────────────────────────────────────────────────
raelgc commented 1 year ago

Hi @cyrus01337 and thanks for your time reporting this. Please, what is Fish?

cyrus01337 commented 1 year ago

Fish is another shell like Zsh but not based on it, Bash is interpreted differently if I'm to run the Shell script using Fish, as shown above.

raelgc commented 1 year ago

Oh, I see. Before we proceed: can you check if the same happens when using the latest rvm?

cyrus01337 commented 9 months ago

I've moved away from Fish since I'm afraid, if anyone else wants to take this up they're more than welcome to do so.