Closed Strahinja closed 2 years ago
It's just an example to illustrate the capabilities, feel free to send a PR to change it.
Nevertheless, since explainshell.com is likely to be used for learning shell, it potentially teaches bad habits. Another issue with that example is the use of backticks, which are deprecated in favor of the parenthesized form $()
of command substitution. I will offer an alternative example in a PR.
Update: I submitted the PR.
One of the examples on the front page,
is a useless use of echo, and could be rewritten as
or, just using parameter expansion in POSIX shell, without the need for an external program: