Skip to content

wezterm.shell_split(line)

Since: Version 20220807-113146-c2fee766

The feature described in this section requires version 20220807-113146-c2fee766 of wezterm, or a more recent version.

Splits a command line into an argument array according to posix shell rules.

> wezterm.shell_split("ls -a")
[
    "ls",
    "-a",
]
> wezterm.shell_split("echo 'hello there'")
[
    "echo",
    "hello there",
]