Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails over Bash version #2969

Closed
ain opened this issue Jul 26, 2014 · 3 comments
Closed

Installation fails over Bash version #2969

ain opened this issue Jul 26, 2014 · 3 comments

Comments

@ain
Copy link

ain commented Jul 26, 2014

ain$ \curl -sSL https://get.rvm.io | bash
Unknown option: n
Unknown option: 1
Usage: head [-options] <url>...
    -m <method>   use method for the request (default is 'HEAD')
    -f            make request even if head believes method is illegal
    -b <base>     Use the specified URL as base
    -t <timeout>  Set timeout value
    -i <time>     Set the If-Modified-Since header on the request
    -c <conttype> use this content-type for POST, PUT, CHECKIN
    -a            Use text mode for content I/O
    -p <proxyurl> use this as a proxy
    -P            don't load proxy settings from environment
    -H <header>   send this HTTP header (you can specify several)

    -u            Display method and URL before any response
    -U            Display request headers (implies -u)
    -s            Display response status code
    -S            Display response status chain
    -e            Display response headers
    -d            Do not display content
    -o <format>   Process HTML content in various ways

    -v            Show program version
    -h            Print this message

    -x            Extra debugging output
BASH 3.2.25 required (you have 4.3.18(1)-release)

Bash was previously the default that ships with Mac OS X 10.9.4. I've upgraded it to version 4.3.18(1)-release (x86_64-apple-darwin13.2.0), but the error persists.

If anything, installation should surely fail more gracefully.

@ain
Copy link
Author

ain commented Jul 26, 2014

Workaround:

  1. Download the RVM installer: curl -Lk get.rvm.io -o rvm-installer
  2. Disable Bash version check by uncommenting ln:12-19
  3. Make RVM installer executable: chmod +x rvm-installer
  4. Run RVM installer: ./rvm-installer
  5. Make rvm available: source /Users/[username]/.rvm/scripts/rvm

@mpapis
Copy link
Member

mpapis commented Sep 4, 2014

can you compare:

$ printf "1\n2\n" | \head -n1
1

vs.

$ printf "1\n2\n" | \command \head -n1
1

@mpapis
Copy link
Member

mpapis commented Sep 21, 2014

it has been two weeks with no response - closing the ticket, please let me know if you can provide more details and I will reopen

@mpapis mpapis closed this as completed Sep 21, 2014
@pkuczynski pkuczynski added this to the rvm-1.27.0-before milestone May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants