-
Notifications
You must be signed in to change notification settings - Fork 4.7k
set -a 在 Warp 的 zsh 中会导致命令被重复拼接(例如输入 pwd 实际执行为 pwdpwd) #11520
Copy link
Copy link
Open
Labels
area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.Terminal input/output, shell integration, prompt behavior, and block rendering.area:terminal-inputTerminal command-line input, cursor movement, key handling, and input editing.Terminal command-line input, cursor movement, key handling, and input editing.bugSomething isn't working.Something isn't working.os:macmacOS-specific behavior, regressions, or requests.macOS-specific behavior, regressions, or requests.repro:highThe report includes enough evidence that the issue appears highly reproducible.The report includes enough evidence that the issue appears highly reproducible.triage-reviewedtriagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.warp:auto-triage-review
Milestone
Metadata
Metadata
Assignees
Labels
area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.Terminal input/output, shell integration, prompt behavior, and block rendering.area:terminal-inputTerminal command-line input, cursor movement, key handling, and input editing.Terminal command-line input, cursor movement, key handling, and input editing.bugSomething isn't working.Something isn't working.os:macmacOS-specific behavior, regressions, or requests.macOS-specific behavior, regressions, or requests.repro:highThe report includes enough evidence that the issue appears highly reproducible.The report includes enough evidence that the issue appears highly reproducible.triage-reviewedtriagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.warp:auto-triage-review
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
在 Warp 的 zsh 会话中,执行
set -a后继续输入普通命令会发生命令字符串重复拼接,导致实际执行内容异常。Problem
该问题仅在 Warp 中可复现。用户在 iTerm2(包括 iTerm2 中启动 zsh)按同样步骤不会出现异常。
触发后即使输入简单命令(如
pwd),Warp 实际执行的内容会变成重复字符串(如pwdpwd),影响基本终端可用性。Expected behavior
执行
set -a后,后续命令应按原样执行;输入pwd应只执行pwd一次。Actual behavior
执行
set -a后,后续命令出现重复拼接;输入pwd时实际执行为pwdpwd(或等价的重复输入行为)。Reproduction steps or desired workflow
set -a。pwd(或其他简单命令)。pwdpwd)。Artifacts
None attached
Warp version
v0.2026.05.20.09.21.stable_02
Operating system
macOS 26.5 (build 25F71)