stdenv: remove bash version compatibility hack#130596
stdenv: remove bash version compatibility hack#130596happysalada merged 1 commit intoNixOS:stagingfrom
Conversation
|
Which version of bash is macos using again? Wasn't that 3.2? Does that matter for the stdenv? (I don't know much about the stdenv, just some questions) |
|
Thank you for the review! bash is included in there. That would make me think that stdenv ships with a shell and that we don't need to care about older version. |
|
@vcunat when you have a moment, I would like to see if that PR builds correctly. |
Motivation for this change
This removes a compatibility hack accross all version of bash prior to 4.4
In my understanding we won't be using older versions of bash anymore, so this is safe to remove.
For more informations check https://stackoverflow.com/questions/7577052/bash-empty-array-expansion-with-set-u
Note that there are other occurrences of this in the nixpkgs (notably in cargo-hooks) just search for the pattern
Array+"to find them. I want to remove those at the same time, but I'm not sure those other occurrences can be safely removed.I think this PR is uncontroversial
This is coming from d685a68
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)