Closed 9999years closed 1 year ago
[https://mercurytechnologies.slack.com/archives/C01QJRR7E23/p1678302126852869?thread_ts=1678300301.675419&cid=C01QJRR7E23](https://mercurytechnologies.slack.com/archives/C01QJRR7E23/p1678302126852869?thread_ts=1678300301.675419&cid=C01QJRR7E23)
This is a little weird, because
bash
is the default shell Nix uses. However, we're currently seeing a bug wherenix develop
will exit if any command being run exits with a nonzero exit code, butnix develop --command bash
will not. Weird!EDIT: The bug was caused by sourcing scripts created with
writeShellApplication
instead ofwriteShellScriptBin
in the Nix shell'sshellHook
, causingset -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 becausebash
support won't hurt anyone.