chore: 导入旧记忆备份供恢复

This commit is contained in:
2026-09-23 22:38:40 +08:00
parent 5313fcee7a
commit 6a6a895eaf
638 changed files with 29816 additions and 1 deletions
@@ -0,0 +1,21 @@
---
title: 坑:PowerShell 常见陷阱(引号/乱码/代理)
type: experience
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/坑-power-shell-常见陷阱引号-乱码-代理
stable_id: 9f00df57-ec45-4d63-9da6-9b2fb16c2d6b
scope: project
memory_type: experience
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
usage_profile_id: 7aee455b-24cc-4008-bdaf-443721e6f939
status: active
revision: 1
request_id: metrix-mig-e5
created_at: '2026-08-12T17:38:58.485492+00:00'
updated_at: '2026-08-12T17:38:58.485492+00:00'
tags:
- pitfall
- powershell
- windows
---
1) curl.exe 传 JSON body:PowerShell 会吃掉双引号,最稳方法是先 Set-Content 写临时 json 文件再 --data-binary "@file"(用完删除)。2) rg 搜索含反斜杠/双引号的 pattern 易触发 PS 解析错误,用单引号包 pattern。3) 控制台中文输出常显乱码(GBK/UTF-8 混用),不影响实际执行,判断成败看 exit code 和关键英文/数字。4) && 不可用,用 ; 串联;重定向用 2>$null。5) 系统有全局代理(127.0.0.1:7897),访问内网地址要 --noproxy。