mcfly
mcfly copied to clipboard
Crash on fish after CTRL-R when command contains pipe
Steps to reproduce:
- Configure fish to use latest mcfly (0.6.0)
- Type
cat | touch hello
- Press CTRL-R
- Observe:
❯ cat | touch hellothread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 25, kind: Uncategorized, message: "Inappropriate ioctl for device" }', src/interface.rs:390:73
- McFly crashed
- The command
touch hello
was actually executed! Tryls hello
to confirm the file now exists
It seems that this happens every time there's a pipe in the typed command, and it executes the part of command after the pipe.
I reproduced this bug as well.
@tjkirch or @domoritz, do either of you have any ideas? I don't use fish personally.