# checkshell

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L80
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-checkshell/

```c
int checkshell(const char *shell)
```

## Parameters

- `shell` (`const char *`)

## Called by

- [`cmd_display_popup_exec`](/en/tmux/3.7c/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-menu.c#L456)
- [`getshell`](/en/tmux/3.7c/reference/c-function-tmux-c-getshell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L69)
- [`job_run`](/en/tmux/3.7c/reference/c-function-job_run/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/job.c#L104)
- [`popup_make_pane`](/en/tmux/3.7c/reference/c-function-popup-c-popup_make_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L445)
- [`server_client_dispatch_shell`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_dispatch_shell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2593)
- [`server_client_exec`](/en/tmux/3.7c/reference/c-function-server_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L589)
- [`spawn_pane`](/en/tmux/3.7c/reference/c-function-spawn_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/spawn.c#L343)

## Calls

- [`areshell`](/en/tmux/3.7c/reference/c-function-tmux-c-areshell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.c#L84)

## Referenced by

- [`options_from_string_check`](/en/tmux/3.7c/reference/c-function-options-c-options_from_string_check/) (function)
