really fix bug in export status of universal vars; add tests for that bug

This commit is contained in:
Jan Kanis
2012-12-29 19:25:00 +01:00
committed by ridiculousfish
parent 3c116f6ab3
commit 9ee7b0a501
3 changed files with 92 additions and 3 deletions

View File

@@ -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
{