# cmd_confirm_before_exec

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L67
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_exec/

tmux command: [`confirm-before`](/en/tmux/latest/manual/confirm-before/)

```c
static enum cmd_retval cmd_confirm_before_exec(struct cmd *, struct cmdq_item *)
```

## Parameters

- `self` (`struct cmd *`)
- `item` (`struct cmdq_item *`)

## Calls

- [`args_has`](/en/tmux/latest/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L87)
- [`args_make_commands_now`](/en/tmux/latest/reference/c-function-args_make_commands_now/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L78)
- [`cmd_get_args`](/en/tmux/latest/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L69)
- [`cmd_get_entry`](/en/tmux/latest/reference/c-function-cmd_get_entry/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L106)
- [`cmd_list_free`](/en/tmux/latest/reference/c-function-cmd_list_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L95)
- [`cmdq_error`](/en/tmux/latest/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L94)
- [`cmdq_get_target`](/en/tmux/latest/reference/c-function-cmdq_get_target/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L72)
- [`cmdq_get_target_client`](/en/tmux/latest/reference/c-function-cmdq_get_target_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L71)
- [`status_prompt_set`](/en/tmux/latest/reference/c-function-status_prompt_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L111)
- [`xasprintf`](/en/tmux/latest/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L104)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L77)

## Other function references

- [`args_get`](/en/tmux/latest/reference/c-function-args_get/) (function)
- [`cmd_confirm_before_callback`](/en/tmux/latest/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_callback/) (function)
- [`cmd_confirm_before_free`](/en/tmux/latest/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_free/) (function)
- [`cmd_list_first`](/en/tmux/latest/reference/c-function-cmd_list_first/) (function)

## Referenced by

- [`cmd_confirm_before_entry`](/en/tmux/latest/reference/c-variable-cmd_confirm_before_entry/) (attribute)

## Referenced declarations

- [`cmd`](/en/tmux/latest/reference/c-struct-cmd/) (struct)
- [`CMD_RETURN_ERROR`](/en/tmux/latest/reference/c-enum-cmd_retval-cmd_return_error/) (constant)
- [`CMD_RETURN_NORMAL`](/en/tmux/latest/reference/c-enum-cmd_retval-cmd_return_normal/) (constant)
- [`CMD_RETURN_WAIT`](/en/tmux/latest/reference/c-enum-cmd_retval-cmd_return_wait/) (constant)
- [`cmd_retval`](/en/tmux/latest/reference/c-enum-cmd_retval/) (enum)
- [`cmd_confirm_before_data.cmdlist`](/en/tmux/latest/reference/c-struct-cmd_confirm_before_data-cmdlist/) (attribute)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`cmd_confirm_before_data.confirm_key`](/en/tmux/latest/reference/c-struct-cmd_confirm_before_data-confirm_key/) (attribute)
- [`cmd_confirm_before_data.default_yes`](/en/tmux/latest/reference/c-struct-cmd_confirm_before_data-default_yes/) (attribute)
- [`cmd_confirm_before_data.item`](/en/tmux/latest/reference/c-struct-cmd_confirm_before_data-item/) (attribute)
- [`cmd_entry.name`](/en/tmux/latest/reference/c-struct-cmd_entry-name/) (attribute)
- [`PROMPT_SINGLE`](/en/tmux/latest/reference/c-define-tmux-h-prompt_single/) (constant)
- [`PROMPT_TYPE_COMMAND`](/en/tmux/latest/reference/c-enum-prompt_type-prompt_type_command/) (constant)
