tmux-python / tmux-python/libtmux

passing -t to cmd() apis breaks running some progrmas

Open
#169 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

For all objects passing "-t" somewhere in the cmd overrides the object being referenced.
This breaks running commands that have -t in them (e.g. ssh).

pane.cmd('respawn-pane', 'ssh', '-t', 'user@host')

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.

Research direction

Start at the pane.cmd() API and reproduce the issue with the shown respawn-pane and ssh command. Trace how -t is interpreted when building the tmux command. Done means commands containing ssh's -t pass it through without changing the referenced object, with coverage for the reported example.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.