Skip to content

[bug] Redirect-operator operand gaps: glob-ambiguous output redirect and brace-expanding operands (found via $(< file) matrix) #210

Closed

Description

@caomengxuan666

COMSUB lane finding: 2 of 24 probes in the #196 matrix diverge on NON-comsub plain redirect lines: (1) an output redirect whose operand glob-expands to multiple words reports differently than GNU's ambiguous-redirect diagnostic; (2) brace expansion in redirect operands is not applied (GNU expands the operand word before open). Reproduce on plain / lines. Out of the comsub lane's scope; general redirect-executor gaps.

Activity

  1. caomengxuan666 commented on Sep 27, 2026

    @caomengxuan666
    MemberAuthor

    已修复并合入 master(commit aab4d8d3,lane wt3/parse2)。重定向操作数现在走完整词表管线(redir.c:298 redirection_expand → subst.c:12590 expand_words_no_vars):花括号展开、单命中 glob 解析、多字段报 ambiguous redirect 且按 redir.c:187 报原始词;heredoc/herestring 豁免(redir.c:396);posix 模式 W_NOGLOB(redir.c:902,redir.tests 178-184)。11 个探针形状与 GNU 5.3.0 字节一致;23 套件前后平价。残留:failglob 措辞差异(rc 一致),另行跟进。感谢报告!

  2. added
    bug
    area:fd
    area:glob
    on Oct 17, 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

    area:fdarea:globbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions