Jump to content

Shell script: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
====OS/2 shells with UNIX script file execution capabilities====
====OS/2 shells with UNIX script file execution capabilities====
* [[Hamilton C Shell]] - Commercial - Discontinued
* [[Hamilton C Shell]] - Commercial - Discontinued
* [[Mksh]] - Open source - Current
* [[Mksh]] - Open source
* [[MKS OS/2 Toolkit]] - Includes Kornshell - Commercial - Discontinued
* MKS OS/2 Toolkit - Includes Kornshell - Commercial


====OS/2 text & programmers editors with .sh support====
====OS/2 text & programmers editors with .sh support====
* [[Elvis]] - Shell script syntax support included by default - Open source - Current.
* [[Elvis]] - Shell script syntax support included by default - Open source
* [[jEdit]] - Java based editor - Shell script syntax highlighting built in - Current.
* [[jEdit]] - Java based editor - Shell script syntax highlighting built in
* [[NEdit]] - XFree86 - Autoindent, autocomplete and syntax highlighting.
* [[NEdit]] - XFree86 - Autoindent, autocomplete and syntax highlighting.


====Shell script related programmer's utilities====
====Shell script related programmer's utilities====
* [[Exuberant ctags]] - Creates index files out of Bourne/Korn/Z Shell script source files - Open source - Current.
* [[Exuberant ctags]] - Creates index files out of Bourne/Korn/Z Shell script source files - Open source


====DOS text & programmers editors with .sh support====
====DOS text & programmers editors with .sh support====
* [[Elvis]] - Shell script syntax support included by default - Open source - Current
* [[Elvis]] - Shell script syntax support included by default - Open source


[[Category:UNIX]][[Category:Programming Languages]]
[[Category:UNIX]][[Category:Programming Languages]]

Latest revision as of 02:40, 26 October 2022

A shell script is UNIX terminology for a batch file, it is usually used on OS/2 to mean an 7 bit ASCII or less commonly 8 bit ISO plain text file with an ".sh" ending, that has a list of commands intended for batch execution in one of the UNIX derived shells, such as the Bourne Shell or Korn Shell.

A shell by the way is UNIX terminology for a command line interface (CLI).

Note that while there is some degree of commonality between shell scripts for the various UNIX or UNIX like CLI's and it is a good rule to try to write such scripts using only commands that all shells support, you will always encounter scripts from time to time that are tied to a specific shell implementation, either by use of commands not universally supported or by the use of environment variables that behave differently between different shell implementations. It is best to know what shell each script is intended for, but even though the target shell does not have a currently maintained OS/2 version some shells also offer backwards compatibility with other and/older shell implementations.

OS/2 shells with UNIX script file execution capabilities

  • Hamilton C Shell - Commercial - Discontinued
  • Mksh - Open source
  • MKS OS/2 Toolkit - Includes Kornshell - Commercial

OS/2 text & programmers editors with .sh support

  • Elvis - Shell script syntax support included by default - Open source
  • jEdit - Java based editor - Shell script syntax highlighting built in
  • NEdit - XFree86 - Autoindent, autocomplete and syntax highlighting.

Shell script related programmer's utilities

  • Exuberant ctags - Creates index files out of Bourne/Korn/Z Shell script source files - Open source

DOS text & programmers editors with .sh support

  • Elvis - Shell script syntax support included by default - Open source