Czy ktoś jest w stanie wyjaśnić mi następujący fenomen?
bash-5.2$ which sh
/usr/bin/sh
bash-5.2$ ls -lah /usr/bin/sh
lrwxrwxrwx 1 root root 20 Dec 12 19:17 /usr/bin/sh -> /etc/alternatives/sh
bash-5.2$ ls -lah /etc/alternatives/sh
lrwxrwxrwx 1 root root 13 Apr 23 2023 /etc/alternatives/sh -> /usr/bin/bash
bash-5.2$ ls -lah /usr/bin/bash
-rwxr-xr-x 1 root root 1.3M Apr 23 2023 /usr/bin/bash
bash-5.2$ sh
sh-5.2$/usr/bin/sh pośrednio wskazuje na /usr/bin/bash, mimo to po wykonaniu sh zgłasza się sh. Inb4 - tak, doczytałem że korzystanie z update-alternatives do tego to nie jest najlepszy pomysł, ale z tak wyglądającymi symlinkami powinno działać.