Re: PATCH: silence Shellcheck warning

Nick Bowler <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <CADyTPExGo=WH1h_8dnQKzQgd9Lf+20K=gcZdPqXYkghh_pfQ5Q@mail.gmail.com>
On 7/21/18, Ben Elliston <[email protected]> wrote:
> This patch silences a warning from Shellcheck about using old-style
> `...` command substitutions.
[...]
> commit 4d35c7aae97234bf055519075ef03cd4090a1dfc
> Author: Ben Elliston <[email protected]>
> Date:   Sun Jul 22 08:22:44 2018 +1000
>
>     * missing: Use $(..) command substitution syntax.

Several shells do not support $(...) substitutions so portable scripts
like 'missing' must always use backticks.  I would suggest that this
linter warning is spurious if not outright counterproductive.

Cheers,
  Nick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.