Re:HiddenWasp Malware Stings Targeted Linux Systems
by nils-m-holm on Friday May 31, 2019 @03:38AM
(#20058918)
The Bourne shell had $() before it had backquote. It's not a Bash-ism.
Re:HiddenWasp Malware Stings Targeted Linux Systems
by neilv on Friday May 31, 2019 @06:09AM
(#20059583)
Thank you, I was mistaken to call it a Bash-ism. Bash's documentation said it's a Posix-ism:
> The POSIX $() form of command substitution is implemented (see Command Substitution), and preferred to the Bourne shell’s `` (which is also implemented for backwards compatibility).
https://www.gnu.org/software/bash/manual/html_node/Major-Dif...
2. This could be an attempt to normalize and reduce whitespace, including eliminating newlines (though you should prevent injection of arguments to `echo`):