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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
    "allOf": [
        {
            "schemaId": "software-application", 
            "required": [
                "name"
            ], 
            "type": "object", 
            "properties": {
                "build": {
                    "type": "string", 
                    "description": "Application build. e.g. VTST"
                }, 
                "shortName": {
                    "type": "string", 
                    "description": "The short name of the application. e.g. qe"
                }, 
                "version": {
                    "type": "string", 
                    "description": "Application version. e.g. 5.3.5"
                }, 
                "name": {
                    "type": "string", 
                    "description": "The name of the application. e.g. espresso"
                }, 
                "summary": {
                    "type": "string", 
                    "description": "Application's short description."
                }
            }, 
            "title": "application schema (base)"
        }
    ], 
    "schemaId": "software-directory-scripting-shell", 
    "title": "Shell Scripting Language Schema", 
    "$schema": "http://json-schema.org/draft-04/schema#", 
    "type": "object", 
    "properties": {
        "name": {
            "enum": [
                "shell"
            ]
        }, 
        "exec": {
            "enum": [
                "sh", 
                "bash", 
                "zsh", 
                "csh"
            ]
        }, 
        "summary": {
            "enum": [
                "Shell Script"
            ]
        }, 
        "environment": {
            "type": "object", 
            "description": "Optional environment variables exported before running the Shell script"
        }, 
        "version": {
            "enum": [
                "4.2.46"
            ]
        }, 
        "arguments": {
            "type": "string", 
            "description": "Optional arguments passed to the Shell script"
        }, 
        "flavor": {
            "enum": [
                "sh", 
                "bash", 
                "zsh", 
                "csh"
            ]
        }
    }
}
1
2
3
4
5
6
7
8
{
    "name": "shell", 
    "exec": "sh", 
    "summary": "Shell Script", 
    "version": "4.2.46", 
    "shortName": "sh", 
    "flavor": "sh"
}