From 6fe26db7aee963bee5120419d28b5c5972dd0470 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 6 Feb 2013 12:45:51 -0500 Subject: [PATCH] quizzes: Use complete sentences with punctation for prompts This makes multi-sentence prompts less awkward. --- quizzes/git.json | 14 +++++++------- quizzes/posix-shell.json | 10 +++++----- quizzes/posix-utilities.json | 10 +++++----- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/quizzes/git.json b/quizzes/git.json index ba5dd8f..3d2f0cc 100644 --- a/quizzes/git.json +++ b/quizzes/git.json @@ -5,7 +5,7 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "git config --global user.name", - "prompt": "configure your user-wide name to be `A U Thor`", + "prompt": "Configure your user-wide name to be `A U Thor`.", "answer": "git config --global user.name 'A U Thor'", "setup": [ "export HOME=." @@ -22,7 +22,7 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "git config --global user.email", - "prompt": "configure your user-wide email to be `author@example.com`", + "prompt": "Configure your user-wide email to be `author@example.com`.", "answer": "git config --global user.email 'author@example.com'", "setup": [ "export HOME=." @@ -39,7 +39,7 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "git init", - "prompt": "initialize a Git repository in a new `my-project` directory", + "prompt": "Initialize a Git repository in a new `my-project` directory.", "multiline": true, "answer": [ "mkdir my-project", @@ -58,7 +58,7 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "git clone", - "prompt": "clone git://github.com/wking/quizzer.git into a new `quizzer` directory", + "prompt": "Clone git://github.com/wking/quizzer.git into a new `quizzer` directory.", "answer": "git clone git://github.com/wking/quizzer.git", "teardown": [ "cd quizzer", @@ -73,7 +73,7 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "git add / commit", - "prompt": "there is a new README file in your repository.\nmake a new commit including this README.\nthe commit message should be `Add a README`", + "prompt": "There is a new README file in your repository.\nMake a new commit including this README.\nThe commit message should be `Add a README`.", "multiline": true, "timeout": null, "answer": [ @@ -104,7 +104,7 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "git checkout HEAD -- FILE", - "prompt": "you've messed up your README file.\nrestore it to the last committed version", + "prompt": "You've messed up your README file.\nRestore it to the last committed version.", "answer": "git checkout HEAD -- README", "setup": [ "export GIT_AUTHOR_NAME='A U Thor'", @@ -132,7 +132,7 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "git commit --amend", - "prompt": "you messed up your README file in your last commit.\nyou just fixed the contents of `README`, but haven't added it to the index.\ncommit the new version so it also fixes the last commit.\nthe fixed commit message should be `Add a README`.", + "prompt": "You messed up your README file in your last commit.\nYou just fixed the contents of `README`, but haven't added it to the index.\nCommit the new version so it also fixes the last commit.\nThe fixed commit message should be `Add a README`.", "multiline": true, "timeout": null, "answer": [ diff --git a/quizzes/posix-shell.json b/quizzes/posix-shell.json index e0693f7..96d8a59 100644 --- a/quizzes/posix-shell.json +++ b/quizzes/posix-shell.json @@ -5,7 +5,7 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "quoting spaces", - "prompt": "call `ls` and pass it two arguments: `a` and `b c`", + "prompt": "Call `ls` and pass it two arguments: `a` and `b c`.", "answer": "ls a 'b c'", "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/xcu_chap02.html#tag_02_02" }, @@ -13,7 +13,7 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "echo constant", - "prompt": "print the string `hello, world` to stdout", + "prompt": "Print the string `hello, world` to stdout.", "answer": "echo 'hello, world'", "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/echo.html" }, @@ -21,7 +21,7 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "parameter expansion", - "prompt": "print the contents of the PATH variable to stdout", + "prompt": "Print the contents of the PATH variable to stdout.", "answer": "echo \"$PATH\"", "help": "http://pubs.opengroup.org/onlinepubs/009696699/utilities/xcu_chap02.html#tag_02_06_02", "dependencies": [ @@ -32,7 +32,7 @@ "class": "ScriptQuestion", "interpreter": "sh", "id": "variable assign constant", - "prompt": "set the ABC variable to the string `xyz`", + "prompt": "Set the ABC variable to the string `xyz`.", "answer": "ABC='xyz'", "teardown": [ "echo \"ABC: '${ABC}'\"" @@ -42,7 +42,7 @@ { "class": "ScriptQuestion", "interpreter": "sh", - "prompt": "prepend the string `/some/path:` to the PATH variable", + "prompt": "Prepend the string `/some/path:` to the PATH variable.", "answer": "PATH=\"/some/path:$PATH\"", "teardown": [ "echo \"PATH: '${PATH}'\"" diff --git a/quizzes/posix-utilities.json b/quizzes/posix-utilities.json index 43c30af..800fec5 100644 --- a/quizzes/posix-utilities.json +++ b/quizzes/posix-utilities.json @@ -4,7 +4,7 @@ { "class": "ScriptQuestion", "interpreter": "sh", - "prompt": "list all the files in the current directory", + "prompt": "List all the files in the current directory.", "answer": "ls", "setup": [ "touch file-1 file-2 file-3" @@ -14,14 +14,14 @@ { "class": "ScriptQuestion", "interpreter": "sh", - "prompt": "print the current directory to stdout", + "prompt": "Print the current directory to stdout.", "answer": "pwd", "help": "http://pubs.opengroup.org/onlinepubs/009696699/idx/utilities.html" }, { "class": "ScriptQuestion", "interpreter": "sh", - "prompt": "change to your home directory", + "prompt": "Change to your home directory.", "answer": "cd", "teardown": [ "pwd" @@ -31,7 +31,7 @@ { "class": "ScriptQuestion", "interpreter": "sh", - "prompt": "change to the parent of your current working directory", + "prompt": "Change to the parent of your current working directory.", "answer": "cd ..", "teardown": [ "pwd" @@ -44,7 +44,7 @@ { "class": "ScriptQuestion", "interpreter": "sh", - "prompt": "print the contents of README file to the terminal", + "prompt": "Print the contents of README file to the terminal.", "answer": "cat README", "setup": [ "echo 'This project is wonderful' > README" -- 2.26.2