You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bash/POSIX 行为:"a","b" 是三个 argv 片段拼接语义有歧义,但至少 "a" "b" 必须是两个独立参数。
4. 数组参数后的多个值被错误重绑
pwsh -File update-package.ps1 -Files "a=b""c=d""e=f" -Sha256 xxx
# 报错: Cannot validate argument on parameter 'Platform'. The argument "e=f" does not# belong to the set "windows-x64,windows-arm64"
Activity
caomengxuan666 commentedon Aug 21, 2026
补充(新案例):裸词参数被自动追加
.exe,导致命令与参数双双失效进一步定位到一个更高频的变体:当当前目录(或其可见范围)存在
<word>.exe时,rubash 会把传给原生程序的裸词参数改写为<word>.exe,命令词和参数词都会命中。复现 1:命令词被改写
在 winuxcmd 安装目录(
usr\bin,存在wpm.exe)执行:./winuxcmd.exe wpm info curl # winuxcmd:未找到命令:wpm.exe ← argv[0] 后的第一个词 "wpm" 被改成 "wpm.exe"同一条命令在没有
wpm.exe的目录执行则完全正常。复现 2:参数词被改写
复现 3:
--version场景影响
usr\bin)里执行 任何winuxcmd wpm ...都会失败;wpm install/reinstall <pkg>对已安装包(即<pkg>.exe已存在)必然失败 —— 这解释了此前"时好时坏"的诡异现象;"./winuxcmd.exe" "wpm" info curl依旧变成wpm.exe;根因推测
Windows 下启动原生程序时对所有 word(而非仅命令词)做了 PATHEXT 式的解析/补全,把能匹配到
<word>.exe的裸词直接替换成了带扩展名的形式。建议
/、\且解析结果确实改变语义时记录并可通过环境变量关闭。环境
<cmd>.exe大量存在,触发面极大)caomengxuan666 commentedon Aug 21, 2026
已完成根因修复和端到端复测。
修复内容:
src/executor/path.rs对非/开头的外部参数原样透传,避免裸词参数被错误追加.exe。/c/...、/dev/null、/tmp/...、/home/...等必要 shell 路径转换。*、?、/CN=test、--send-only和 PowerShell 命令参数不再被污染。-n -c、-n script.sh已覆盖。验证:
winuxcmd wpm info curl成功返回Name: curl。Name: curl。对应提交:
4d35c63b、652a82f1。安装目录中旧版
winuxcmd.exe直接调用仍可能出现wpm.exe解析失败,这是旧安装包/WinuxCmd 运行时问题,不属于当前 Rubash 修复。fix(comsub): admit word-level substitution shortcuts by whitelist (#117)
docs(readme): captured artifacts for quickstart and identity, restruc…