LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   'sh' shell - Actually calls legacy Bourne shell, or uses system default? (http://www.linuxquestions.org/questions/linux-software-2/sh-shell-actually-calls-legacy-bourne-shell-or-uses-system-default-377723/)

Dtsazza 10-28-2005 09:00 AM

'sh' shell - Actually calls legacy Bourne shell, or uses system default?
 
Hi all,

While answering a question, I came across a gap in my own knowledge. Now, I've picked up from somewhere that the 'sh' shell (specifically, if you select it as your login shell) is essentially a symlink to the system default shell, usually bash. However, while double-checking this before posting along these lines, I found web pages claiming that it's still installed on all Linuxes, and implying that it's called if the shabang in a script is /bin/sh. Can someone take the time to confirm for me what the 'sh' shell does in various situations?

Thanking you in advance,
Andrzej

reddazz 10-28-2005 09:20 AM

This depends on the distro. On most Linux distros /bin/sh is a symlink to /bin/bash, but on others its not.


All times are GMT -5. The time now is 03:52 AM.