Page 1 of 1

Here is a sample output of your script. The $ is the shell prompt. The items in italics are not part of the sample outpu

Posted: Fri Jul 08, 2022 6:16 am
by answerhappygod
Here Is A Sample Output Of Your Script The Is The Shell Prompt The Items In Italics Are Not Part Of The Sample Outpu 1
Here Is A Sample Output Of Your Script The Is The Shell Prompt The Items In Italics Are Not Part Of The Sample Outpu 1 (21.8 KiB) Viewed 74 times
Here is a sample output of your script. The $ is the shell prompt. The items in italics are not part of the sample output. They are hints indicating how your script should behave. $ ./setting.sh *** MENU *** 1. Add a Setting 2. Delete a Setting 3. View a Setting 4. View All Settings Quit Q - CHOICE: 1 (user input) Enter setting (format: ABCD=abcd): (user simply presses the Enter/Return key) New setting not entered Enter setting (format: ABCD-abcd): EDITOR (user input) Invalid setting (A valid setting needs to contain a "=" sign) Enter setting (format: ABCD=abcd): EDITOR= (user input) The variable name of the setting is: EDITOR The variable value of the setting is: Invalid setting. Page 2 of
The variable name of the setting is: EDITOR The variable value of the setting is: Invalid setting. (Hint: To retrieve a variable name before the "=" sign, research the expr command's ability in handling strings) Enter setting (format: ABCD=abcd): =vi (user input) The variable name of the setting is: The variable value of the setting is: vi Invalid setting. Enter setting (format: ABCD=abcd): 1EDITOR=vi (user input) The variable name of the setting is: 1EDITOR The variable e of the setting is: vi Invalid setting. The first character of a variable name cannot be a digit. Enter setting (format: ABCD=abcd): EDITOR=vi (user input) The variable name of the setting is: EDITOR The variable value of the setting is: vi New setting added. *** MENU *** 1. Add a Setting 2. Delete a Setting 3. View a Setting 4. View All Settings Q - Quit CHOICE: 1 (user input) Enter setting (format: ABCD=abcd): USER=jchen (user input) The variable name of the setting is: USER The variable value of the setting is: jchen Variable exists. Changing the values of existing variables is not allowed.