title: wezterm.shell_quote_arg tags:

  • utility
  • open
  • spawn
  • string

wezterm.shell_quote_arg(string)

{{since('20220807-113146-c2fee766')}}

Quotes its single argument using posix shell quoting rules.

> wezterm.shell_quote_arg("hello there")
"\"hello there\""