Category:UNIX Shell: Difference between revisions
Content added Content deleted
(Copied language page.) |
No edit summary |
||
Line 5: | Line 5: | ||
=Implementation= |
=Implementation= |
||
The UNIX Shell may be implemented by any of a wide variety of programs. Notable programs used as shells include the [[Bourne |
The UNIX Shell may be implemented by any of a wide variety of programs. Notable programs used as shells include the [[Bourne Shell]], the [[Korn Shell]], and the [[Bourne Again SHell]]. |
||
=Language= |
=Language= |
||
Line 11: | Line 11: | ||
While UNIX Shells vary in the programming languages they support, such languages carry a minimum set of features. Each language allows the programmer to execute system commands as though he were typing the commands himself, and each language allows for a header line which specifies which shell implementation is used to interpret the script. |
While UNIX Shells vary in the programming languages they support, such languages carry a minimum set of features. Each language allows the programmer to execute system commands as though he were typing the commands himself, and each language allows for a header line which specifies which shell implementation is used to interpret the script. |
||
This one tells the operating system to use the [[Bourne |
This one tells the operating system to use the [[Bourne Shell]]: |
||
#!/bin/sh |
#!/bin/sh |
||
This line tells the operating system to use the [[Bourne Again SHell]]: |
This line tells the operating system to use the [[Bourne Again SHell]]: |
||
#!/bin/bash |
#!/bin/bash |
||
And this one tells the operating system to use the [[Korn |
And this one tells the operating system to use the [[Korn Shell]]: |
||
#!/bin/ksh |
#!/bin/ksh |
||