Bourne Shell: Difference between revisions

Content added Content deleted
m (add wikipedia link)
(Definition and hashbang)
Line 1: Line 1:
{{language}}{{stub}}

'''Portable Shell Syntax''' is the scripting language syntax used by the System V Bourne shell. This syntax is compatible with the heirloom shell and is the syntax documented in most Unix books.

{{implementation|UNIX Shell}}The [[wp:bourne shell|'''Bourne Shell''']] is a UNIX shell upon which many shells are based; notably ksh and bash. (The other major tree of UNIX shells descend from csh)
{{implementation|UNIX Shell}}The [[wp:bourne shell|'''Bourne Shell''']] is a UNIX shell upon which many shells are based; notably ksh and bash. (The other major tree of UNIX shells descend from csh)


A Bourne Shell script begins like this:
A Bourne Shell script begins with a [[hashbang]] like this, that tells the operating system to use the Bourne compatible shell interpreter:


#!/bin/sh
#!/bin/sh

This specifies which binary to use to interpret the script.


[[wp:Computerworld|Computerworld]] just published an in-depth interview with Steve Bourne
[[wp:Computerworld|Computerworld]] just published an in-depth interview with Steve Bourne