Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bash support #23

Merged
merged 2 commits into from
Apr 21, 2023

Conversation

9999years
Copy link
Member

@9999years 9999years commented Mar 8, 2023

This is a little weird, because bash is the default shell Nix uses. However, we're currently seeing a bug where nix develop will exit if any command being run exits with a nonzero exit code, but nix develop --command bash will not. Weird!

EDIT: The bug was caused by sourcing scripts created with writeShellApplication instead of writeShellScriptBin in the Nix shell's shellHook, causing set -eu being sourced at the beginning of the shell. This in turn caused any failing command to exit the shell. I'm still going to merge this though because bash support won't hurt anyone.

@9999years 9999years added the minor A minor change (backwards-compatible new functionality) label Mar 8, 2023
@9999years 9999years merged commit 8485e7f into main Apr 21, 2023
@9999years 9999years deleted the rebeccat/dux-1092-add-bash-support-to-nix-your-shell branch April 21, 2023 16:33
@github-actions
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor A minor change (backwards-compatible new functionality)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant