bash: upgrade default version to 5#133495
Conversation
|
related: #131681 please update the PR title to match contributing, the same as the last one would do. Also FYI you can make a new separate branch and push it over the one you were using for the last PR e.g. |
|
Thank you, will definitely remember that one. |
e135cf4 to
34aa4fa
Compare
pkgs/top-level/all-packages.nix
Outdated
There was a problem hiding this comment.
This lowPrio should be moved from bashInteractive (5) to bashInteractive_4.
There was a problem hiding this comment.
Well spotted, thank you!
|
@vcunat when you have a moment, if you can run a hydra jobset for this PR, it would be great. I know you are busy, no rush. |
34aa4fa to
b0502f9
Compare
|
Should we keep |
|
I personally would tend to say no, as the upgrade should be straightforward. (I know I'm biased toward breaking things, to signify that something has changed, so I'm open to other opinions). |
|
I don't see a reason not to do an update to the release notes and docs in this same PR |
|
Hydra is quite busy with security rebuild from OpenSSL (master now, 21.05 soon), so it will take at least a few days before there's capacity for that. |
|
No worries, I'll ping again next week. Thank you for having checked! |
|
A hydra job has been created on aarch64-linux for this https://hydra.nixos.org/jobset/nixpkgs/bash-5#tabs-evaluations |
|
I would actually merge this right now, but it looks like some conflicts have cropped up... |
somehow `read -N 0` behavior changed in bash 5. `read -d ''` has identical behavior the purpose of the function is to read stdin and exit 1 on a null byte (i.e. if stdin is the content of a binary) (cherry picked from commit 5d0acf2)
ab70630 to
c2b804d
Compare
|
Just rebased, merging then. Thank you all for the time and care given to this! |
|
Broke one |
|
@trofi sorry about that! The failure isn't super clear from reading the logs. I'm curious about the change of behavior if you have more information. You probably know this but the bash changelog is not complete and so it makes it very hard to know what will actually break. |
|
I only superficially looked at the test. It compares the output from |
|
The following command changed behaviour under
|
|
Looks intentional. From the bash-5.1-beta changelog:
Although, hmm, that seems to contradict POSIX, which says:
|
|
I reported a Bash bug about the apparent POSIX violation with some more context. |
Motivation for this change
bash default version upgrade
cc @SuperSandro2000 @06kellyjac
@vcunat just leaving a comment here to test this on hydra at some point to verify nothing major breaks. (no rush, I know you are busy).
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)