ITADN

yazi --version fails with "Error: Inappropriate ioctl for device (os error 25)" without a TTY

#3992Openmikavilpas 创建于 2026-05-24
bugneeds info
M
mikavilpascommented
### What system are you running Yazi on? macOS ### What terminal are you running Yazi in? wezterm 20260117-154428-05343b38 ### `yazi --debug` output ```Shell not applicable ``` ### Describe the bug The latest nightly version seems to disallow `yazi --version` if used in a non-TTY context. This regression came up in https://github.com/mikavilpas/yazi.nvim/pull/1865 where renovate tried bumping the tracked nightly version. I run a sanity check with `yazi --version` in the pipeline before the test run starts, and it started failing with the error below (https://github.com/mikavilpas/yazi.nvim/actions/runs/26352966628/job/77574353739?pr=1865#step:8:15) ### Minimal reproducer I'm not sure what the easiest way to reproduce this would be, but this seems to work for me. ```sh # nightly is broken # From commit: https://github.com/sxyazi/yazi/commit/d9cd1907d91927a36efe7296eee2a7d8975230f8 # Generated on: 2026-05-23 03:18 UTC $ docker run --rm -i alpine:3.20 sh -c ' apk add --no-cache curl unzip >/dev/null curl -fsSL https://github.com/sxyazi/yazi/releases/download/nightly/yazi-aarch64-unknown-linux-musl.zip -o /tmp/y.zip unzip -q /tmp/y.zip -d /tmp/y /tmp/y/yazi-aarch64-unknown-linux-musl/yazi --version' Error: Not a tty (os error 25) # latest stable works though ❯ docker run --rm -i alpine:3.20 sh -c ' apk add --no-cache curl unzip >/dev/null curl -fsSL https://github.com/sxyazi/yazi/releases/download/v26.5.6/yazi-aarch64-unknown-linux-musl.zip -o /tmp/y.zip unzip -q /tmp/y.zip -d /tmp/y /tmp/y/yazi-aarch64-unknown-linux-musl/yazi --version' Yazi 26.5.6 (aa52643 2026-05-05) ``` ### Anything else? _No response_ ### Checklist - [x] I tried the [latest nightly build](https://yazi-rs.github.io/docs/installation#binaries), and the issue is still reproducible - [x] I updated the debug information (`yazi --debug`) input box to the nightly that I tried - [x] I can reproduce it after disabling all custom configs/plugins (`mv ~/.config/yazi ~/.config/yazi-backup`)
1 条评论