30 lines
376 B
Markdown
30 lines
376 B
Markdown
---
|
|
title: wezterm.shell_split
|
|
tags:
|
|
- utility
|
|
- open
|
|
- spawn
|
|
- string
|
|
---
|
|
# wezterm.shell_split(line)
|
|
|
|
{{since('20220807-113146-c2fee766')}}
|
|
|
|
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",
|
|
]
|
|
```
|