Add test for #4992

This commit is contained in:
Eelco Dolstra 2021-07-09 01:16:55 +02:00
parent 5f6375a816
commit 9fc7da1e08
2 changed files with 3 additions and 0 deletions

View file

@ -99,3 +99,5 @@ nix_develop -f shell.nix shellDrv -c echo foo |& grep -q foo
source <(nix print-dev-env -f shell.nix shellDrv)
[[ -n $stdenv ]]
[[ ${arr1[2]} = "3 4" ]]
[[ ${arr2[1]} = $'\n' ]]
[[ ${arr2[2]} = $'x\ny' ]]

View file

@ -21,6 +21,7 @@ let pkgs = rec {
export PATH=$PATH:$pkg/bin
done
declare -a arr1=(1 2 "3 4" 5)
declare -a arr2=(x $'\n' $'x\ny')
'';
stdenv = mkDerivation {