5 "class": "ScriptQuestion",
7 "id": "quoting spaces",
8 "prompt": "call `ls` and pass it two arguments: `a` and `b c`",
9 "answer": "ls a 'b c'",
10 "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/xcu_chap02.html#tag_02_02"
13 "class": "ScriptQuestion",
15 "id": "echo constant",
16 "prompt": "print the string `hello, world` to stdout",
17 "answer": "echo 'hello, world'",
18 "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/echo.html"
21 "class": "ScriptQuestion",
23 "id": "parameter expansion",
24 "prompt": "print the contents of the PATH variable to stdout",
25 "answer": "echo \"$PATH\"",
26 "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/xcu_chap02.html#tag_02_06_02",
32 "class": "ScriptQuestion",
34 "id": "variable assign constant",
35 "prompt": "set the ABC variable to the string `xyz`",
36 "answer": "ABC='xyz'",
38 "echo \"ABC: '${ABC}'\""
40 "help": "http://tldp.org/LDP/abs/html/varassignment.html"
43 "class": "ScriptQuestion",
45 "prompt": "prepend the string `/some/path:` to the PATH variable",
46 "answer": "PATH=\"/some/path:$PATH\"",
48 "echo \"PATH: '${PATH}'\""
52 "variable assign constant"