- saySilence2026-09-0569654
😅,看哭十亿 vibe coding 大师
主楼 - zuosiruan2026-09-051291
powershell7 丝滑
- zuokanyunqishi2026-09-051374
@zuosiruan 也不太丝滑
- charles02026-09-0541643
其实非常简单,只需要:
- charles02026-09-0541643
确保用的是 PowerShell 7 ,并且不要在其它 shell (无论是 bash 还是 cmd )里调用 PowerShell (只要看到以 powershell 或 pwsh 开头的命令就说明是在其它 shell 里调用它)
- saySilence2026-09-0569654
@charles0 用的就是 pwsh7 ,windows powershell 已经被我劫持到 pwsh7 了,AI 想用原版都用不了。
@zuosiruan - bbbblue2026-09-0547929
唉 我 codex 里还挺丝滑的
加了这段使用 powershell 命令时,尽可能使用"或者'包裹字符串参数,特别是路径参数,避免因为空格等原因造成命令被截断和出现歧义。如果文件路径有特殊符号(比如各种括号),你在使用 Get-Content 获取的时候务必加上
-LiteralPath参数,避免被错误解析。 - charles02026-09-0541643
那你是不是在别的 shell 里调用 pwsh 呢?很多 agent 默认给的都是 bash ,然后在 bash 里运行以 pwsh/powershell 开头的命令,这肯定会遇到转义问题的
- zuosiruan2026-09-051291
@saySilence 我用的 powershell7 agy Claude grok codex 都巨流畅🤙