I discovered this old answer thanks to an edit suggestion which may look somewhat unnecessary. The suggestion was to remove the following phrase from the answer
and read a basic bash programming manual
and along with the comment
Removed unhelpful and borderline rude comment. The rest of the answer is fine as is.
It seems the suggestion was eventually rejected (disclaimer: I approved it as I kinda agreed with the sentiment).
What should be the correct course of action here?