I have installed oksh and I made it my default shell but when I run /bin/sh I expect shell to be POSIX bourne shell aka sh but oksh is started.
It seems like oksh replaced /bin/sh (it is not a symlink, its a binary) in my system (by pkg or by my mistake) - how to repair this? Or sh always points to default shell? I want my /bin/sh to be sh(1)
It seems like oksh replaced /bin/sh (it is not a symlink, its a binary) in my system (by pkg or by my mistake) - how to repair this? Or sh always points to default shell? I want my /bin/sh to be sh(1)
Bash:
selfluv:/bin $ ls -al /bin | grep sh
-r-xr-xr-x 2 root wheel 429104 7 gru 2018 csh*
lrwxr-xr-x 1 root wheel 19 29 cze 20:30 oksh@ -> /usr/local/bin/oksh
-r-xr-xr-x 1 root wheel 168936 7 gru 2018 sh*
-r-xr-xr-x 2 root wheel 429104 7 gru 2018 tcsh*
selfluv:/usr/local/bin $ ls -al /usr/local/bin | grep oksh
-r-xr-xr-x 1 root wheel 289808 7 lip 19:04 oksh* # binary size does not match with sh