Directory

Encyclopedia

NodeWorks
                              ENCYCLOPEDIA

Link Checker

Home
Encyclopedia : P : PW : PWB :

PWB shell

 

PWB shell

The PWB shell (also known as the Mashey shell) was an early Unix shell distributed with some versions of Programmer's Workbench UNIX circa 1975-1977. It was a modified version of the Thompson shell with additional features to increase usability for programming, and was maintained by John Mashey and various others.

Although it was soon superceded by the Bourne shell, several features introduced in the PWB shell remain in many later shells. The if and goto commands were made internal to the shell, and switch and while constructs were introduced. Simple variables could be used, although their names were limited to one letter and some letters were reserved for special purposes. The $ character, used previously for identifying arguments to a shell script, became the marker for dereferencing a variable, and could be used to insert a variable's value into a string in double quotes. (In addition to later shells, this feature would also later appear in the Perl and PHP programming languages.)

These features could not overcome the shortcomings of the Thompson shell, and so a new shell was written from scratch by Stephen Bourne. This Bourne shell was incompatible with the Thompson and PWB shells, but included several of PWB shell's features. After the adoption of the Bourne shell as the standard shell in Version 7 Unix, use of the PWB shell soon died out. (The C shell, developed before the public release of the Bourne shell, also inherited some of the features of the PWB shell.)

External links

  • Manual page for the PWB shell
  • Article by Mashey on the PWB shell's development and influence

  • NodeWorks boosts web surfing!
    Page Returned in 0.632 seconds - HTML Compressed 68.6%

    This article is from Wikipedia. All text is available
    under the terms of the GNU Free Documentation License.
     GNU Free Documentation License
    © 2008 Chamas Enterprises Inc.