Hands-on task
This task is step 2 of the course “Clean scripts: shellcheck”
Quote "$@"
The script /root/greet.sh should print each argument on its own line, but it breaks on arguments containing spaces. Fix the quoting so that shellcheck reports nothing and an argument like two words is treated as one.
Reference:shellcheck
What you'll practise:
- shellcheck
- quoting
- $@
- SC2068
- word splitting