langs a-z

This commit is contained in:
Ingy döt Net 2013-04-10 22:43:41 -07:00
parent db842d013d
commit d066446780
11389 changed files with 98361 additions and 1020 deletions

View file

@ -0,0 +1,25 @@
{{language
|exec=interpreted
|tags=bash
|hopl id=568
}}The '''UNIX Shell''' is a component of terminal-based [[UNIX]]-derived systems which offers both a command-line interface for running system commands, as well as programming interface for intelligently automating tasks which use system commands.
=Implementation=
There are many UNIX Shells and most of them can be categorized into two families. For purposes of the Rosetta Code, all examples are in Bourne-compatible syntax. The other family of shells, with a markedly different syntax, are ''csh'' ([[:Category:C Shell|C Shell]]) and it's ''tcsh'' (Tenex C Shell) "clone." Common Bourne compatible shells include the original [[Bourne Shell]] (''/bin/sh'' on most versions of UNIX), the GNU [[Bourne Again SHell]] (''bash'' --- which is linked to ''/bin/sh'' on many distributions of [[Linux]], making it their default shell), the [[Korn Shell]] (''ksh''), the [[Public Domain Korn SHell]] (''pdksh''), the [[Almquist SHell]] (''ash'') and the [[Debian Almquist SHell]] (''dash'') and the [[Z SHell]] (''zsh'').
''Main article: [[UNIX Shell Implementations]]''
=Language=
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 a System Command|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 Shell]]:
#!/bin/sh
This line tells the operating system to use the [[Bourne Again SHell]]:
#!/bin/bash
And this one tells the operating system to use the [[Korn Shell]]:
#!/bin/ksh
Each header line consists of a hash, a bang, and the path to the [[interpreter]] binary.

1
Lang/UNIX-Shell/100-doors Symbolic link
View file

@ -0,0 +1 @@
../../Task/100-doors/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/99-Bottles-of-Beer/UNIX-Shell

1
Lang/UNIX-Shell/A+B Symbolic link
View file

@ -0,0 +1 @@
../../Task/A+B/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Accumulator-factory/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Ackermann-function/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Active-Directory-Search-for-a-user/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Align-columns/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Anonymous-recursion/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Apply-a-callback-to-an-array/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Arithmetic-Integer/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Array-concatenation/UNIX-Shell

1
Lang/UNIX-Shell/Arrays Symbolic link
View file

@ -0,0 +1 @@
../../Task/Arrays/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Associative-array-Iteration/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Averages-Arithmetic-mean/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Averages-Mode/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Bitcoin-address-validation/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Boolean-values/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Box-the-compass/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Bulls-and-cows/UNIX-Shell

1
Lang/UNIX-Shell/Calendar Symbolic link
View file

@ -0,0 +1 @@
../../Task/Calendar/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Call-a-function/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Case-sensitivity-of-identifiers/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Check-that-file-exists/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Combinations-with-repetitions/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Command-line-arguments/UNIX-Shell

1
Lang/UNIX-Shell/Comments Symbolic link
View file

@ -0,0 +1 @@
../../Task/Comments/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Conditional-structures/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Count-in-octal/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Create-a-file/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Create-a-file-on-magnetic-tape/UNIX-Shell

1
Lang/UNIX-Shell/Date-format Symbolic link
View file

@ -0,0 +1 @@
../../Task/Date-format/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Date-manipulation/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Day-of-the-week/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Deal-cards-for-FreeCell/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Delete-a-file/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Determine-if-only-one-instance-is-running/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Dinesmans-multiple-dwelling-problem/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Dutch-national-flag-problem/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Empty-directory/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Empty-program/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Empty-string/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Enforced-immutability/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Ethiopian-multiplication/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Evaluate-binomial-coefficients/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Execute-a-system-command/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Extend-your-language/UNIX-Shell

1
Lang/UNIX-Shell/Factorial Symbolic link
View file

@ -0,0 +1 @@
../../Task/Factorial/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Fibonacci-sequence/UNIX-Shell

1
Lang/UNIX-Shell/File-IO Symbolic link
View file

@ -0,0 +1 @@
../../Task/File-IO/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/File-modification-time/UNIX-Shell

1
Lang/UNIX-Shell/File-size Symbolic link
View file

@ -0,0 +1 @@
../../Task/File-size/UNIX-Shell

1
Lang/UNIX-Shell/Filter Symbolic link
View file

@ -0,0 +1 @@
../../Task/Filter/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Find-common-directory-path/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Find-limit-of-recursion/UNIX-Shell

1
Lang/UNIX-Shell/FizzBuzz Symbolic link
View file

@ -0,0 +1 @@
../../Task/FizzBuzz/UNIX-Shell

1
Lang/UNIX-Shell/Fork Symbolic link
View file

@ -0,0 +1 @@
../../Task/Fork/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Function-composition/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Function-definition/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Greatest-common-divisor/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Greatest-element-of-a-list/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Guess-the-number/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Guess-the-number-With-feedback/UNIX-Shell

1
Lang/UNIX-Shell/HTTP Symbolic link
View file

@ -0,0 +1 @@
../../Task/HTTP/UNIX-Shell

1
Lang/UNIX-Shell/HTTPS Symbolic link
View file

@ -0,0 +1 @@
../../Task/HTTPS/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Hailstone-sequence/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Handle-a-signal/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Happy-numbers/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Hello-world-Graphical/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Hello-world-Line-printer/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Hello-world-Newline-omission/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Hello-world-Standard-error/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Hello-world-Text/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Here-document/UNIX-Shell

1
Lang/UNIX-Shell/Hostname Symbolic link
View file

@ -0,0 +1 @@
../../Task/Hostname/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/I-before-E-except-after-C/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Include-a-file/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Increment-a-numerical-string/UNIX-Shell

1
Lang/UNIX-Shell/Input-loop Symbolic link
View file

@ -0,0 +1 @@
../../Task/Input-loop/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Integer-comparison/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Integer-sequence/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Interactive-programming/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Inverted-index/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Keyboard-input-Obtain-a-Y-or-N-response/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Knuth-shuffle/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Last-Friday-of-each-month/UNIX-Shell

1
Lang/UNIX-Shell/Leap-year Symbolic link
View file

@ -0,0 +1 @@
../../Task/Leap-year/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Least-common-multiple/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Literals-Integer/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Literals-String/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Loop-over-multiple-arrays-simultaneously/UNIX-Shell

1
Lang/UNIX-Shell/Loops-Break Symbolic link
View file

@ -0,0 +1 @@
../../Task/Loops-Break/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Loops-Continue/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Loops-Do-while/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Loops-Downward-for/UNIX-Shell

1
Lang/UNIX-Shell/Loops-For Symbolic link
View file

@ -0,0 +1 @@
../../Task/Loops-For/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Loops-For-with-a-specified-step/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Loops-Foreach/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Loops-Infinite/UNIX-Shell

View file

@ -0,0 +1 @@
../../Task/Loops-N-plus-one-half/UNIX-Shell

Some files were not shown because too many files have changed in this diff Show more