mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-10 04:41:15 -03:00
really fix bug in export status of universal vars; add tests for that bug
This commit is contained in:
committed by
ridiculousfish
parent
3c116f6ab3
commit
9ee7b0a501
6
env.cpp
6
env.cpp
@@ -811,7 +811,7 @@ int env_set(const wcstring &key, const wchar_t *val, int var_mode)
|
||||
|
||||
if (var_mode & ENV_UNIVERSAL)
|
||||
{
|
||||
int exportv = 0;
|
||||
int exportv;
|
||||
|
||||
if (!(var_mode & ENV_EXPORT) &&
|
||||
!(var_mode & ENV_UNEXPORT))
|
||||
@@ -868,12 +868,12 @@ int env_set(const wcstring &key, const wchar_t *val, int var_mode)
|
||||
|
||||
if (env_universal_get(key))
|
||||
{
|
||||
int exportv = 0;
|
||||
int exportv;
|
||||
|
||||
if (!(var_mode & ENV_EXPORT) &&
|
||||
!(var_mode & ENV_UNEXPORT))
|
||||
{
|
||||
env_universal_get_export(key);
|
||||
exportv = env_universal_get_export(key);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user