Skip to content

[bug] 计时管道以 dash 词作首段时丢失 command not found 诊断 #1552

Closed

Description

@caomengxuan666

被 time 计时的管道以 dash 词作首段时,丢失 -p: command not found 诊断(parsetime2 簇修 #1548 后显形:rc 与计时均正确,普通名首段与独立形诊断俱全,机制未定位,归 timed-pipeline 驱动族)。

PATH=/nonexistent; time -p '-p' | cat   # GNU: -p: command not found + 计时 + rc 127 系
PATH=/nonexistent; time '-p'            # 对照:独立形诊断俱全(#1548 已修)

Regression seed:期望按 GNU bash 5.3.20 实测(诊断文本、计时输出、rc),脚本自包含,测试名带本 issue 号。

Activity

  1. added a commit that references this issue on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions