# cmd_if_shell_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L148
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd-if-shell-c-cmd_if_shell_callback/

```c
static void cmd_if_shell_callback(struct job *)
```

## Parameters

- `job` (`struct job *`)

## Calls

- [`cmd_list_free`](/en/tmux/3.2a/reference/c-function-cmd_list_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L183)
- [`cmd_parse_from_string`](/en/tmux/3.2a/reference/c-function-cmd_parse_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L166)
- [`cmdq_append`](/en/tmux/3.2a/reference/c-function-cmdq_append/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L188)
- [`cmdq_continue`](/en/tmux/3.2a/reference/c-function-cmdq_continue/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L195)
- [`cmdq_error`](/en/tmux/3.2a/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L172)
- [`cmdq_free_state`](/en/tmux/3.2a/reference/c-function-cmdq_free_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L182)
- [`cmdq_get_command`](/en/tmux/3.2a/reference/c-function-cmdq_get_command/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L180)
- [`cmdq_get_state`](/en/tmux/3.2a/reference/c-function-cmdq_get_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L179)
- [`cmdq_insert_after`](/en/tmux/3.2a/reference/c-function-cmdq_insert_after/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L190)
- [`cmdq_new_state`](/en/tmux/3.2a/reference/c-function-cmdq_new_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L177)
- [`job_get_data`](/en/tmux/3.2a/reference/c-function-job_get_data/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L150)
- [`job_get_status`](/en/tmux/3.2a/reference/c-function-job_get_status/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L158)

## Referenced by

- [`cmd_if_shell_exec`](/en/tmux/3.2a/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function)

## Referenced declarations

- [`cmd_if_shell_data.client`](/en/tmux/3.2a/reference/c-struct-cmd_if_shell_data-client/) (attribute)
- [`cmd_if_shell_data.cmd_else`](/en/tmux/3.2a/reference/c-struct-cmd_if_shell_data-cmd_else/) (attribute)
- [`cmd_if_shell_data.cmd_if`](/en/tmux/3.2a/reference/c-struct-cmd_if_shell_data-cmd_if/) (attribute)
- [`CMD_PARSE_EMPTY`](/en/tmux/3.2a/reference/c-enum-cmd_parse_status-cmd_parse_empty/) (constant)
- [`CMD_PARSE_ERROR`](/en/tmux/3.2a/reference/c-enum-cmd_parse_status-cmd_parse_error/) (constant)
- [`CMD_PARSE_SUCCESS`](/en/tmux/3.2a/reference/c-enum-cmd_parse_status-cmd_parse_success/) (constant)
- [`cmd_parse_result.cmdlist`](/en/tmux/3.2a/reference/c-struct-cmd_parse_result-cmdlist/) (attribute)
- [`cmd_parse_result.error`](/en/tmux/3.2a/reference/c-struct-cmd_parse_result-error/) (attribute)
- [`cmd_if_shell_data.input`](/en/tmux/3.2a/reference/c-struct-cmd_if_shell_data-input/) (attribute)
- [`cmd_if_shell_data.item`](/en/tmux/3.2a/reference/c-struct-cmd_if_shell_data-item/) (attribute)
- [`job`](/en/tmux/3.2a/reference/c-struct-job/) (struct)
- [`cmd_parse_result.status`](/en/tmux/3.2a/reference/c-struct-cmd_parse_result-status/) (attribute)
