# checkshell

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

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

## Parameters

- `shell` (`const char *`)

## Called by

- [`cmd_display_popup_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-menu.c#L383)
- [`getshell`](/en/tmux/3.2a/reference/c-function-tmux-c-getshell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tmux.c#L69)
- [`server_client_dispatch_shell`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_dispatch_shell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L2339)
- [`server_client_exec`](/en/tmux/3.2a/reference/c-function-server_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L462)
- [`spawn_pane`](/en/tmux/3.2a/reference/c-function-spawn_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/spawn.c#L323)

## Calls

- [`areshell`](/en/tmux/3.2a/reference/c-function-tmux-c-areshell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tmux.c#L84)

## Referenced by

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