Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
tutorials:shells [2011/05/11 21:35]
jlehmus [[[Conclusion]]]
tutorials:shells [2011/10/02 14:53]
memnon Fix quotes
Line 26: Line 26:
 In UNIX history, the Thompson shell preceded both the Bourne shell and the C shell, and its command language is a subset of both of these shells. Control flow in the Thompson shell is implemented via [[http://​v6shell.org/​man/​if.1.html|if]](1) and [[http://​v6shell.org/​man/​goto.1.html|goto]](1),​ which are external shell utilities. However, flow control in the Bourne and C shells is built into each shell. In UNIX history, the Thompson shell preceded both the Bourne shell and the C shell, and its command language is a subset of both of these shells. Control flow in the Thompson shell is implemented via [[http://​v6shell.org/​man/​if.1.html|if]](1) and [[http://​v6shell.org/​man/​goto.1.html|goto]](1),​ which are external shell utilities. However, flow control in the Bourne and C shells is built into each shell.
  
-An enhanced port of the Thompson shell is available on SDF as "`/​usr/​pkg/​bin/​osh'​". You can read its manual by doing a "`man osh'" ​at the command prompt. You can also read its manual [[http://​v6shell.org/​man/​osh.1.html|online]] if you prefer to do so.+An enhanced port of the Thompson shell is available on SDF as `/​usr/​pkg/​bin/​osh'​. You can read its manual by doing a `man osh' at the command prompt. You can also read its manual [[http://​v6shell.org/​man/​osh.1.html|online]] if you prefer to do so.
  
 <​code>​ <​code>​
Line 48: Line 48:
  
 </​code>​ </​code>​
-... \\  Notice that the "`setenv'​" ​command above is not available in the original Thompson shell. This is just one of the **osh** enhancements. Do we want to say anything about the PWB shell?+... \\  Notice that the `setenv'​ command above is not available in the original Thompson shell. This is just one of the **osh** enhancements. Do we want to say anything about the PWB shell?
  
 ===== Bourne Shell ===== ===== Bourne Shell =====
Line 54: Line 54:
 This includes the original Bourne shell, its derivatives,​ and workalikes. A true Bourne shell or a Bourne-like shell typically serves as the standard command interpreter on most UNIX systems. This includes the original Bourne shell, its derivatives,​ and workalikes. A true Bourne shell or a Bourne-like shell typically serves as the standard command interpreter on most UNIX systems.
  
-A Bourne-shell workalike is available on SDF as "`/​bin/​sh'​". You can read its manual by doing a "`man sh'" ​at the command prompt. You can also read its manual [[http://​netbsd.gw.com/​cgi-bin/​man-cgi?​sh+1.alpha+NetBSD-2.1|online]] if you prefer to do so.+A Bourne-shell workalike is available on SDF as `/​bin/​sh'​. You can read its manual by doing a `man sh' at the command prompt. You can also read its manual [[http://​netbsd.gw.com/​cgi-bin/​man-cgi?​sh+1.alpha+NetBSD-2.1|online]] if you prefer to do so.
  
 <​code>​ <​code>​
Line 81: Line 81:
 This includes the original C shell, its derivatives,​ and workalikes. This includes the original C shell, its derivatives,​ and workalikes.
  
-The C shell is available on SDF as "`/​bin/​csh'​". You can read its manual by doing a "`man csh'" ​at the command prompt. You can also read its manual [[http://​netbsd.gw.com/​cgi-bin/​man-cgi?​csh+1.alpha+NetBSD-2.1|online]] if you prefer to do so.+The C shell is available on SDF as `/​bin/​csh'​. You can read its manual by doing a `man csh' at the command prompt. You can also read its manual [[http://​netbsd.gw.com/​cgi-bin/​man-cgi?​csh+1.alpha+NetBSD-2.1|online]] if you prefer to do so.
  
 <​code>​ <​code>​