# shell_argv0

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

```c
char * shell_argv0(const char *shell, int is_login)
```

## Parameters

- `shell` (`const char *`)
- `is_login` (`int`)

## Called by

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

## Calls

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

## Referenced by

- [`client_exec`](/en/tmux/3.7c/reference/c-function-client-c-client_exec/) (function)
