LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2005, 09:00 AM   #1
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
'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
 
Old 10-28-2005, 09:20 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell example using system calls djgerbavore Programming 7 03-06-2010 02:39 AM
aliases and the 'sh' shell koodoo Linux - Newbie 14 08-05-2006 04:19 AM
How to Write Own Shell in Unix using System Calls? indian Programming 2 08-05-2004 04:06 AM
Bash Shell vs Bourne infamous41md Linux - Newbie 14 04-11-2003 10:16 PM
Bourne Again SHell help MagInnovision Linux - Newbie 2 02-04-2003 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration