Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Lorri does not use bashInteractive like nix-shell #488

Open
erikarvstedt opened this issue Jan 16, 2021 · 0 comments
Open

Lorri does not use bashInteractive like nix-shell #488

erikarvstedt opened this issue Jan 16, 2021 · 0 comments

Comments

@erikarvstedt
Copy link

erikarvstedt commented Jan 16, 2021

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.

{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
 shellHook = ''
   compgen -e
 '';
}

Expected behavior
Lorri should support all shell derivations that work with nix-shell.

Details
I'm using compgen in nix-shells in the context of export -n $(compgen -e) to clear exports and reexport specific variables.

If lorri would use bashInteractive, the following workaround could be removed: #392

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant