Skip to content

Instantly share code, notes, and snippets.

@jimathyp
Last active June 13, 2021 01:22
Show Gist options
  • Select an option

  • Save jimathyp/f3043e136decb8a86850d03e105b35fa to your computer and use it in GitHub Desktop.

Select an option

Save jimathyp/f3043e136decb8a86850d03e105b35fa to your computer and use it in GitHub Desktop.

Bash version differences

$ bash --version GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)

$ bash --version GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)

https://ftp.gnu.org/gnu/bash/

http://git.savannah.gnu.org/cgit/bash.git/tree/NEWS?h=bash-5.0 This is a terse description of the new features added to bash-5.0 since the release of bash-4.4. As always, the manual page (doc/bash.1) is the place to look for complete descriptions.

http://git.savannah.gnu.org/cgit/bash.git/tree/NEWS This is a terse description of the new features added to bash-5.1 since the release of bash-5.0. As always, the manual page (doc/bash.1) is the place to look for complete descriptions.

https://lists.gnu.org/archive/html/bug-bash/2019-01/msg00063.html

There are a few incompatible changes between bash-4.4 and bash-5.0. The changes to how nameref variables are resolved means that some uses of namerefs will behave differently, though I have tried to minimize the compatibility issues. By default, the shell only sets BASH_ARGC and BASH_ARGV at startup if extended debugging mode is enabled; it was an oversight that it was set unconditionally and caused performance issues when scripts were passed large numbers of arguments.

http://git.savannah.gnu.org/cgit/bash.git/log/

only up to v4.2 https://tldp.org/LDP/abs/html/bash2.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment