I fresh installed Artix (runit) couple days ago and I'm having trouble with bash. I tried searching for a couple hours but didn't find anything relevant or anything that solved my problem.
While using the /bin/bash everything works fine, but when trying to use /bin/sh instead, it simply doesn't source the ~/.bashrc file.
/bin/bash sources ~/.bashrc just fine (see PS1).
look@yuria in ~ $: bash
look@yuria in ~ $:
/bin/sh doesn't.
look@yuria in ~ $: sh
sh-5.1$
I can source .bashrc directly with /bin/bash
look@yuria in ~ $: bash
look@yuria in ~ $: source .bashrc
look@yuria in ~ $:
I cannot source .bashrc directly with /bin/sh (yes I am at home directory).
(I can source .bashrc if I specify the current directory - see PS1)
look@yuria in ~ $: sh
sh-5.1$ source .bashrc
sh: source: .bashrc: file not found
sh-5.1$ source ./.bashrc
look@yuria in ~ $:
which location seems just fine
look@yuria in ~ $: which bash
/usr/bin/bash
look@yuria in ~ $: which sh
/usr/bin/sh
Yes, sh is symlinked to bash
look@yuria in ~ $: ls -lhF /usr/bin/sh
lrwxrwxrwx 1 root root 4 Nov 19 14:27 /usr/bin/sh -> bash*
look@yuria in ~ $: ls -lhF /usr/bin/bash
-rwxr-xr-x 1 root root 1.1M Oct 18 11:29 /usr/bin/bash*
Additionally /bin/sh doesn't seem to source /etc/profile or /etc/bash/bashrc or /etc/bash/bashrc.d/artix.bashrc, but /bin/bash does.
I have no idea why this is happening since sh is simply symlinked to bash, shouldn't it be the same? And yes I tried redoing the symlinks for /bin/sh with the absolute path to no success.
I usually can solve most of my distro problems by searching or by my own experience but I really don't get what is going on.
I simply would like for sh to act as an alias for bash since its the shell I want to use.
Please tell me if you need any more information or if there are any posts solving this issue.
Thanks.