Problem with colon (:) in pane commands in yaml-session-files

Open
#820 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reproducing the issue with the YAML session-file example on tmuxp 1.9.3, then locate the session-file parsing path used for pane commands. Done means commands containing a colon followed by text load and run with the full command intact; verify the reported scanner-error case consistently and add or run relevant parser tests if available.

Written by the indexing model from the issue text.

Description

Hi,

there seems to be a problem with colons in pane commands. See the following example yaml-session-file. Escaping with backslash (\) has no effect. Using single ticks (') instead of double ticks (") has no effect.
I'm using tmuxp 1.9.3 on Ubuntu 18.04, installed via pip.

session_name: buggy_session
windows:
  - window_name: bug_window
    panes:
      # the following works
      - echo "a bug with colon:"
      # the following gives no output
      - echo "a bug with colon: a"
      # the following results in no start of session and in error: yaml.scanner.ScannerError: while scanning a quoted scalar
      #- echo "a bug with colon: "

Maybe I missed a documentation somewhere, which says how to deal with colons in commands. Otherwise (if I did not and if it is not really a bug) a documentation would be great.

Kind regards,
abelbabel

Dominant language
Python
Stars
4.6k
Forks
248
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/tmuxp

All issues in tmux-python/tmuxp

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.