When I open a terminal, with my Ubuntu 18 with mate desktop is mate-terminal
(probably like gnome-terminal for mate desktop) appears this message
-bash: /home/albert/.bashrc: Permission denied
and my .bashrc is not executed/loaded
I'm almost 100% sure than this file never has been executable, ant nor is now, but If I change their permisions to make it executable,then tries do exectute these first lines:
case $- in
*i*) ;;
*) return;;
esac
and complains in return
says something that is not a function ...this code must be sourced...
Edited:
If I use UXTerm, it seems that .bashrc is exectued successfully, but something is missing, because I can not use rvm...I've lost the path Any idea how to solve this?
ls -al $(which sh)
lrwxrwxrwx 1 root root 4 Mar 25 2019 /bin/sh -> dash
It seems I'm using dash (not bash), may be this the problem? how can I change to bash? if so
Thank you very much
During chat session we have located a typo in
~/.profile
file.The problematic code block:
should be changed to
Note the dot (
.
) in the"$HOME/.bashrc"
line above, it means sourcing.