# cmd_parse_and_insert

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tmux.h#L2332
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd_parse_and_insert/

```c
enum cmd_parse_status cmd_parse_and_insert(const char *, struct cmd_parse_input *, struct cmdq_item *, struct cmdq_state *, char **)
```

## Parameters

- `` (`const char *`)
- `` (`struct cmd_parse_input *`)
- `` (`struct cmdq_item *`)
- `` (`struct cmdq_state *`)
- `` (`char **`)

## Called by

- [`cmd_if_shell_exec`](/en/tmux/3.2a/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L93)
- [`cmd_run_shell_timer`](/en/tmux/3.2a/reference/c-function-cmd-run-shell-c-cmd_run_shell_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-run-shell.c#L187)

## Referenced declarations

- [`cmd_parse_input`](/en/tmux/3.2a/reference/c-struct-cmd_parse_input/) (struct)
- [`cmd_parse_status`](/en/tmux/3.2a/reference/c-enum-cmd_parse_status/) (enum)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`cmdq_state`](/en/tmux/3.2a/reference/c-struct-cmdq_state/) (struct)
