# libtmux.exc._match_env_subcommand

- **Module:** libtmux.exc
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/efdbb5637666b166358772ecc737b3807beab21e/src/libtmux/exc.py#L45
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-exc-_match_env_subcommand/

```
libtmux.exc._match_env_subcommand(
    token: str,
) -> tuple[str, frozenset[str]] | None
```

Classify *token* if it names an ``-e`` or [`set-environment`](/en/tmux/latest/manual/set-environment/) command.

## Parameters

- `token` (`str`)
