Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Cannot set environemnt variables which have `-t` in their words

Open
#259 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
50/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start by locating the argument-handling code that checks for -t within the provided args. Change the check so only an argument equal to -t matches, while values such as variable-temp do not. Done means environment variables or other arguments containing -t in their words are accepted without triggering the special handling.

Written by the indexing model from the issue text.

Description

Due to this issue we cannot have any args with -t in them. A quick workaround would be to check for -t with == instead of in. Like this ->
if not any('-t' == text_type(x) for x in args):

This will not affect any args like variable-temp ...

Dominant language
Python
Stars
1.2k
Forks
127
Avg merge
2h 13m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tmux-python/libtmux

All issues in tmux-python/libtmux

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.