help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Identifying incompatible change while bash upgrade


From: Tim Visher
Subject: Re: Identifying incompatible change while bash upgrade
Date: Wed, 17 Feb 2021 13:58:14 -0500

On Wed, Feb 17, 2021 at 1:22 PM Aviraj Cj (acj) via <help-bash@gnu.org>
wrote:

> I was trying to migrate old shell scripts (running on bash-4.2) to run on
> bash 5, I am seeing failures due to Compatibility related changes…
>
> One option which I am following is to set BASH_COMPAT to older working
> version for those scripts but since final goal is to migrate the script to
> run on latest version is there an script or tool available which will
> identify this incompatible change before running…
>

The best general linter I'm aware of is shellcheck
<https://github.com/koalaman/shellcheck>. That said I don't know if it's
not currently catching these sorts of bugs if there's too many issues with
your current script to make it tenable to run. Have you tried that?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]