Skip to content

[stat] '-' 操作数不支持(回归 #1089) #1653

Closed

Description

@caomengxuan666

现象

GNU 的 stat - 对 stdin 执行 fstat(管道时为 fifo);WinuxCmd 报 cannot statx '-': No such file or directory,rc=1。

复现

"x" | & "...\stat.exe" -c "%F" - ; "rc=$LASTEXITCODE"

GNU 9.4(expected):fifo,rc=0。

WinuxCmd 1.2.1(actual):stat: cannot statx '-': No such file or directory,rc=1。

影响

... | stat -c '%s' - 这类管道用法失效。

Activity

  1. added
    compat-gap
    on Nov 14, 2026
  2. caomengxuan666 commented on Nov 14, 2026

    @caomengxuan666
    MemberAuthor

    intake 定序:stat 面同文件串行——本单待 #1652 合入后派修(队长队列,先派 #1652)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

compat-gap

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions