Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upEnvironment variable is not being set when environment value contains "-th" #543
Comments
|
Myself and @jpninanjohn debugged this issue. Our finding:
We are calling def cmd(self, *args, **kwargs):
# if -t is not set in any arg yet
if not any('-t' in text_type(x) for x in args):
# insert -t immediately after 1st arg, as per tmux format
new_args = [args[0]]
new_args += ['-t', self.id]
new_args += args[1:]
args = new_args
return self.server.cmd(*args, **kwargs)This adds a key and value as |
Problem
Environment variable is not being set in a weird case
tmuxp details
/Users/thamaraiselvam/Documents/repositories/github.com/tmuxp/.venv/bin:/Users/thamaraiselvam/.rvm/gems/ruby-2.6.3/bin:/Users/thamaraiselvam/.rvm/gems/ruby-2.6.3@global/bin:/Users/thamaraiselvam/.rvm/rubies/ruby-2.6.3/bin:/usr/local/opt/helm@2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/thamaraiselvam/.rvm/gems/ruby-2.6.3/bin:/Users/thamaraiselvam/.rvm/gems/ruby-2.6.3@global/bin:/Users/thamaraiselvam/.rvm/rubies/ruby-2.6.3/bin:/usr/local/opt/helm@2/bin:/Users/thamaraiselvam/.rvm/bin:/Users/thamaraiselvam/development/flutter/bin:/usr/local/Cellar/node/12.10.0/bin/:/Users/thamaraiselvam/go/bin:/usr/local/opt/go/libexec/binP:/usr/local/opt/fzf/bin:/Users/thamaraiselvam/.rvm/bin:/Users/thamaraiselvam/development/flutter/bin:/usr/local/bin:/usr/local/Cellar/node/12.10.0/bin/:/Users/thamaraiselvam/go/bin:/usr/local/opt/go/libexec/binPoutput of tmux show-options -g
Environment
Darwin 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov 9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64Step 4: Describe the problem:
tmuxp is not setting environment variable which starts with
-thSteps to reproduce:
only
ONEwill be thereObserved Results:
--log_levelExpected Results: