3 "introduction": "Test your knowledge of the POSIX shell.",
6 "class": "ScriptQuestion",
8 "id": "quoting spaces",
9 "prompt": "Call `ls` and pass it two arguments: `a` and `b c`.",
10 "answer": "ls a 'b c'",
11 "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/xcu_chap02.html#tag_02_02"
14 "class": "ScriptQuestion",
16 "id": "echo constant",
17 "prompt": "Print the string `hello, world` to stdout.",
18 "answer": "echo 'hello, world'",
19 "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/echo.html"
22 "class": "ScriptQuestion",
24 "id": "parameter expansion",
25 "prompt": "Print the contents of the PATH variable to stdout.",
26 "answer": "echo \"$PATH\"",
27 "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/xcu_chap02.html#tag_02_06_02",
33 "class": "ScriptQuestion",
35 "id": "variable assign constant",
36 "prompt": "Set the ABC variable to the string `xyz`.",
37 "answer": "ABC='xyz'",
39 "echo \"ABC: '${ABC}'\""
41 "help": "http://tldp.org/LDP/abs/html/varassignment.html"
44 "class": "ScriptQuestion",
46 "prompt": "Prepend the string `/some/path:` to the PATH variable.",
47 "answer": "PATH=\"/some/path:$PATH\"",
49 "echo \"PATH: '${PATH}'\""
53 "variable assign constant"