Description
Lorri uses pkgs.bash instead of pkgs.bashInteractive like nix-shell, causing some shell derivations to fail.
Reproduce
Lorri fails when evaluating the following shell.nix.
Reason: shellHook uses the function compgen which is unavailable in noninteractive bash.
Description Lorri uses
pkgs.bash
instead ofpkgs.bashInteractive
like nix-shell, causing some shell derivations to fail.Reproduce Lorri fails when evaluating the following
shell.nix
. Reason:shellHook
uses the functioncompgen
which is unavailable in noninteractivebash
.Expected behavior Lorri should support all shell derivations that work with nix-shell.
Details I'm using
compgen
in nix-shells in the context ofexport -n $(compgen -e)
to clear exports and reexport specific variables.If lorri would use
bashInteractive
, the following workaround could be removed: https://github.com/target/lorri/pull/392