Skip to main content

zsh_safe_command

Function zsh_safe_command 

Source
pub fn zsh_safe_command(command: &str, shell: &str) -> String
Expand description

Wrap a command to disable zsh nomatch and equals (GH #1439, #1448).

  • nomatch: zsh aborts when unquoted globs match no files; POSIX passes the word through unchanged. Agents emit --include=*.go etc.
  • equals: zsh expands =foo to the path of the foo binary, so echo === fails with “= not found”. Agents use === as separators.