View Issue Details

IDProjectCategoryView StatusLast Update
0017683CentOS-7tmuxpublic2020-08-20 19:19
Reporterfoxhound 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx86-64OSCentOSOS Version7.8-2003
Product Version7.8-2003 
Target VersionFixed in Version 
Summary0017683: tmux session does not inherit exported shell variable from parent shell
DescriptionWhen user exports a variable in the shell and run tmux session then the tmux session does not inherit the variable when should.
Steps To Reproduce$ export myvar='sth'
$ printf '%s\n' $myvar
sth
$ tmux new-session -s mysession
(inside tmux): $ printf '%s\n' $myvar

$
Tagscentos 7, variables
abrt_hash
URL

Activities

foxhound

foxhound

2020-08-20 19:19

reporter   ~0037578

After further tests and investigation it started to work. Looks like the issue has been caused for an unknown reason by screen sessions. After few of them were terminated then tmux started to inherit exported variables.

Issue History

Date Modified Username Field Change
2020-08-20 10:22 foxhound New Issue
2020-08-20 10:22 foxhound Tag Attached: centos 7
2020-08-20 10:22 foxhound Tag Attached: variables
2020-08-20 19:19 foxhound Note Added: 0037578