diff --git a/exercises/practice/error-handling/.docs/instructions.append.md b/exercises/practice/error-handling/.docs/instructions.append.md index 4f2cabbd..f7c8e93d 100644 --- a/exercises/practice/error-handling/.docs/instructions.append.md +++ b/exercises/practice/error-handling/.docs/instructions.append.md @@ -3,5 +3,14 @@ ## Bash-specific instructions The goal of this exercise is to consider the number of arguments passed to your program. -If there is exactly one argument, print a greeting message. -Otherwise print an error message and exit with a non-zero status. + +Note that you can pass empty strings as arguments. + +`./program ""` + +This is different from passing no arguments at all. + +`./program` + +If your program is run with exactly one argument (even if it is an empty string), treat is as a person's name and print a greeting message. +If it is run with zero arguments or more than one argument, print an error message and exit with a non-zero status.