mcfly icon indicating copy to clipboard operation
mcfly copied to clipboard

Crash on fish after CTRL-R when command contains pipe

Open JanPokorny opened this issue 2 years ago • 1 comments

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
  • McFly crashed
  • The command touch hello was actually executed! Try ls 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.

JanPokorny avatar Jun 16 '22 15:06 JanPokorny

I reproduced this bug as well.

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

cantino avatar Jul 16 '22 18:07 cantino