“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
./heythen printsHey there. - When
./hey Youthen printsHey there You. - When
./hey anyonethen 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.