pavement

Bourne shell

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
/bin/sh is where you will find the ubiquitous and somewhat spartan Bourne shell, written by Steven Bourne.
 
/bin/sh is where you will find the ubiquitous and somewhat spartan Bourne shell, written by Steven Bourne.
  
Most shell scripts call on the /bin/sh because of it's very ubiquity. It's been around since the 70's and it's not going to go away anytime soon. This makes shell scripts that use the bourne shell very portable -- if you code a shell script that uses bash or tcsh-only features, you'll soon enough find a system that doesn't have the shell that you wrote it for.  
+
Most shell scripts call on the '''sh''' shell because of its very ubiquity. It's been around since the 70's and it's not going to go away anytime soon. This makes shell scripts that use the bourne shell very portable -- '''sh''' will very likely be on literally every unixlike machine you ever encounter, but if you code a shell script that uses bash or tcsh-only features, you'll soon enough find a system that doesn't have them.  ([[User:Jimbo|Jimbo]] recommends the following: "If it's an incredibly simple task, write it in '''sh'''.  If it's not, write it in [[perl]].")
  
 
[[Category: Shells]]
 
[[Category: Shells]]

Revision as of 15:08, 25 August 2004

/bin/sh is where you will find the ubiquitous and somewhat spartan Bourne shell, written by Steven Bourne.

Most shell scripts call on the sh shell because of its very ubiquity. It's been around since the 70's and it's not going to go away anytime soon. This makes shell scripts that use the bourne shell very portable -- sh will very likely be on literally every unixlike machine you ever encounter, but if you code a shell script that uses bash or tcsh-only features, you'll soon enough find a system that doesn't have them. (Jimbo recommends the following: "If it's an incredibly simple task, write it in sh. If it's not, write it in perl.")

Personal tools