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

Error exec $SHELL on elementaryos #1031

Closed
sgnd opened this issue Aug 28, 2017 · 3 comments
Closed

Error exec $SHELL on elementaryos #1031

sgnd opened this issue Aug 28, 2017 · 3 comments

Comments

@sgnd
Copy link

sgnd commented Aug 28, 2017

screenshot from 2017-08-28 14-24-29

i am elementary user, i want to install rbenv with this tutorial https://gorails.com/setup/ubuntu/16.04
but if i run exec $SHELL, error like this:
suganda@toshiba:~$ exec $SHELL
bash: /home/suganda/.bashrc: line 171: syntax error near unexpected token PATH="$HOME/.rbenv/bin:$PATH"' bash: /home/suganda/.bashrc: line 171: esacexport PATH="$HOME/.rbenv/bin:$PATH"'

how to fix this?

@znz
Copy link

znz commented Aug 29, 2017

Add a newline between asac and export.
I think your .bashrc did not have final newline before echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc.

@sgnd
Copy link
Author

sgnd commented Aug 30, 2017

ok, thank you. works!

@blueyed
Copy link
Contributor

blueyed commented Jun 4, 2018

This can be closed.

@sgnd sgnd closed this as completed Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants