cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.77k stars 176 forks source link

Crash on fish after CTRL-R when command contains pipe #268

Open JanPokorny opened 2 years ago

JanPokorny commented 2 years ago

Steps to reproduce:

  1. Configure fish to use latest mcfly (0.6.0)
  2. Type cat | touch hello
  3. Press CTRL-R
  4. 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

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.

cantino commented 1 year ago

I reproduced this bug as well.

@tjkirch or @domoritz, do either of you have any ideas? I don't use fish personally.