Menu: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) |
(→{{header|UNIX Shell}}: deleted "incorrect") |
||
Line 2,914: | Line 2,914: | ||
=={{header|UNIX Shell}}== |
=={{header|UNIX Shell}}== |
||
{{incorrect|UNIX Shell|The function should return an empty string if called with an empty list. Please also check if this could really used as a [https://en.wikipedia.org/wiki/Subroutine function aka subroutine.]}} |
|||
This example uses the [http://www.softpanorama.org/Scripting/Shellorama/Control_structures/select_statements.shtml Bash select statement], but Bash did not invent this feature. The ''select'' loop comes originally from the [[Korn Shell]], and appears in some other shells. This loop always continues to read menu choices until the script breaks the loop, or the standard input reaches end of file (EOF). |
This example uses the [http://www.softpanorama.org/Scripting/Shellorama/Control_structures/select_statements.shtml Bash select statement], but Bash did not invent this feature. The ''select'' loop comes originally from the [[Korn Shell]], and appears in some other shells. This loop always continues to read menu choices until the script breaks the loop, or the standard input reaches end of file (EOF). |
||