On Sun, 30 Jul 2023, 08:22 Chet Ramey, <chet.ra...@case.edu> wrote:

> On 7/28/23 1:51 PM, Martin D Kealey wrote:
>
> > maybe it's time to start issuing a warning
> > when [backticks are] used at all? 🤪
>
> There's no reason to use `` over $(...), but that form is still a required
> POSIX expansion.


Oh, then only warn when set +o posix and shopt -u
compat_im_too_lazy_to_fix_backticks is in effect!

(Insert large tongue-in-cheek smiley)

Seriously though, the internet is awash with "helpful" Shell guides and
examples loaded with poor practices. The only way this is going to improve
is if there's a "linting mode" is included in the Shell and on by default.

Consider this a feature request for a linting mode, on when invoked with
bash -n or bash6.

-Martin

Reply via email to