zsh バグ: 予期しないプロセスの一時停止

zsh バグ: 予期しないプロセスの一時停止

アップデート:より簡単なコピー

mdoc-test () {
    sleep 0 | sleep 0
    cat
}

echo start |VISUAL=vim command vipe|mdoc-test
# zsh: suspended (tty output)

公開済みzshメーリングリストに移動します。


mdoc-test () {
  echo echo hi | {
                eval "$(cat -)"
        }
  echo "input from fzf: $(cat -)" # this line is not needed to reproduce the problem, it's just here for ... aesthetics.
}

echo a |command fzf|mdoc-test

失敗(fzfまったく開けません):

hi
  ok
    [1]  + 65356 done                   echo a |


    65357 suspended (tty input)  command fzf

同じコードがbashで完全に実行されます。

更新:setopt nomultiosこの問題も解決されていません。

ベストアンサー1

おすすめ記事