MercuryTechnologies / nix-your-shell

A `nix` and `nix-shell` wrapper for shells other than `bash`
MIT License
85 stars 12 forks source link

`nix repl --file` with no specified file crashes nix-your-shell #71

Open lf- opened 3 months ago

lf- commented 3 months ago

originally reported by @janik-haag

The application panicked (crashed).
Message:  index out of bounds: the len is 2 but the index is 2
Location: src/nix.rs:128

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
9999years commented 3 months ago

In my defense, this crashes nix too:

$ nix repl --file
error: flag '--file' requires 1 argument(s), but only 0 were given
Try 'nix --help' for more information.
lf- commented 3 months ago

hey i would expect it to segfault the daemon during evaluation to really be in character as nix :P