Skip to content

Shell Scripting: Structured Representation

We present in what follows the structured representation for the shell scripting language.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
    "$id": "software-directory/scripting/shell",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "Shell Scripting Language Schema",
    "type": "object",
    "allOf": [
        {
            "$ref": "../../software/application.json"
        }
    ],
    "properties": {
        "name": {
            "enum": [
                "shell"
            ]
        },
        "flavor": {
            "enum": [
                "sh",
                "bash",
                "zsh",
                "csh"
            ]
        },
        "summary": {
            "enum": [
                "Shell Script"
            ]
        },
        "version": {
            "enum": [
                "4.2.46"
            ]
        },
        "exec": {
            "enum": [
                "sh",
                "bash",
                "zsh",
                "csh"
            ]
        },
        "arguments": {
            "description": "Optional arguments passed to the Shell script",
            "type": "string"
        },
        "environment": {
            "description": "Optional environment variables exported before running the Shell script",
            "type": "object"
        }
    }
}
1
2
3
4
5
6
7
8
{
    "exec": "sh",
    "flavor": "sh",
    "name": "shell",
    "shortName": "sh",
    "summary": "Shell Script",
    "version": "4.2.46"
}