-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Notmuch) environment is not isolated #14
Comments
Doesn't seem like a tasty-tmux bug to me; rather something in purebred or hs-notmuch. i.e. how we find out what notmuch database to open. |
Clarification: while the bug is very specific, we've got stung a few times with inherited environment variables. So the problem still stands that we want better support here. At least some more explicit control over what happens with the environment in a new tmux session. |
@romanofski might be inherited from the global environment of the the tmux server, and there's nothing we can do about it. I'd say we punt on this, or at most provide a helper function to (un)set user-specified envvars. |
Hm.. I've read something in the man page (see update-environment). Since we're controlling the session I'm sure we can do something about it. |
iirc |
Yeah, a clean login shell sounds good! I haven't looked into it so you might be further down the track. |
Describe the bug
I've come across a bug I've seen due to an alternative location of my notmuch config file. It is visible in the test, albeit touching perhaps on purebred-mua/hs-notmuch also.
Basically what happens is: if
NOTMUCH_CONFIG
is set in the environment pointing to a default notmuch location, running the tests which point to a different location using the purebred--database
argument will cause separate threads using the locationNOTMUCH_CONFIG
is pointing to.To Reproduce
Steps to reproduce the behavior:
NOTMUCH_CONFIG
which points to database A. For me it's my main maildir I use every day.NOTMUCH_CONFIG
, not the test maildir.Expected behavior
Create a tmux session with a minimal bash environment, so that variables already upon startup are not inherited.
Additional context
None
The text was updated successfully, but these errors were encountered: