“Hey There” Challenge
Create a program that prints Hey there
by default or Hey there You
if You
is passed as an argument and Hey there You over there
if 'You over there'
is passed as the first argument (hint quotes).
Search Hints
- bash variables
- bash command arguments
Requirements
- Must include a safe shebang line if a script.
- When
./hey
then printsHey there
. - When
./hey You
then printsHey there You
. - When
./hey anyone
then printsHey there anyone
. - When any argument is passed print
Hey there <argument>
. - Use the most efficient, idiomatic code possible.
Bonus
- Write the algorithm first as comments using natural language.
- Validate using language test framework.