Skip to content

[P2][harvest] 命令名解析大小写不敏感:source 纯 gitconfig alias 文件时小写 r 启动了 R.exe,REPL 被 R 吞掉 (asset: kutsan/dotfiles#aliases.gitconfig) #799

Closed

Description

@caomengxuan666

来源

eco-harvest-ci 夜间 run 39078222286(windows test 层)verdict 分诊。

静态复现形态(只读分析,未执行)

asset 是一份纯 git alias 定义(gitconfig 格式):90+ 行 name = value,外加 [alias] 段头。没有任何一行会启动程序。GNU bash 下 source 它只会喷 ~100 条 command not found(a、bl、prune-merged…皆非命令)然后正常返回。

harness tail(verdict 原样)

Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> command echo ECOSRC

tail 末行 > command echo ECOSRC:harness 的下一条探针命令被打进了 GNU R 的交互提示符 —— source 过程中真的把 R 解释器拉起来了,R 等键盘输入直到看门狗。

根因推断:命令名解析大小写不敏感(Windows 面)

GitHub windows runner 预装 GNU R(R.exe 在 PATH)。文件里恰有一行小写 r = reflog --date=iso8601 --pretty=reflog-default:

  • GNU bash:命令名 r,大小写敏感查找 → r: command not found(GNU R 的 R 是另一个名字)。
  • rubash on Windows:r 命中了大写 R.exe(NTFS/PATHEXT 大小写不敏感查找),把 = reflog --date=… 传成 R 的参数 → R 对未知参数报 ARGUMENT ... __ignored__ 后进入交互模式 → 卡死。tail 与 R 的实际行为完全吻合。

与既有票的关系(已去重)

  • rubash#273(bare $NAME 环境变量回退大小写不敏感,已修):变量名面,已修且在 pin 内;本票是命令名/PATH 查找面,独立未修。
  • rubash#588(赋值后 PATH 查找回退 embedded /bin + Windows search,已修): restricting-场景回退面,也非大小写匹配本身。

预期

命令名解析应大小写敏感(bash on Windows/MSYS 同样敏感),r 应报 command not found rc=127;R 才解析到 R.exe。此分歧在 linux CI 不可复现(大小写敏感 fs),windows 专属,建议加 platform:windows 面。

Activity

  1. added
    bug
    platform:windows
    P2-medium
    eco-harvest
    on Oct 18, 2026
  2. added 2 commits that reference this issue on Oct 18, 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

    P2-mediumbugeco-harvestplatform:windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions