Skip to content

[[ ]] parser rejects a suffix after a word-initial process substitution: <(...)x is a syntax error #1933

Closed

Description

@caomengxuan666

分歧(master 既存,#1915 t7 接续簇探针 pg1/pg2 发现)

[[ -n <(echo hi)x ]]
[[ -n <(echo hi)${NOPE} ]]
  • GNU 5.3.20:正常接受。
  • rubash:conditional syntax error(rc 2)——词首 procsub 跨度之后的后缀被解析拒绝。

同词「跨度后活引用」形状因此暂不可在 [[ ]] 面表达(简单命令面由 #1929 的 v4 守卫覆盖、无此问题)。证据:~/workspace/clear-1915-procsub/REPORT.md §7.4 + probes/pg1.sh、pg2.sh。

归宿

conditional 面后续批(与 #1932 同批:[[ ]] 的 procsub 物化+解析两面)。

Regression seed: 上列两行,期望按 GNU 接受并正常求值。

Activity

  1. added
    bug
    gnu-baseline
    P2-medium
    area:parser
    on Oct 28, 2026
  2. added a commit that references this issue on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2-mediumarea:parserbuggnu-baseline

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions