[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53922] unsetenv does not unset environment va
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #53922] unsetenv does not unset environment variables on Windows |
Date: |
Fri, 29 Jun 2018 16:37:48 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Follow-up Comment #8, bug #53922 (project octave):
As I mentioned earlier in comment #4, we need someone to test the Gnulib
function wrappers for 'putenv', 'setenv', and 'unsetenv', to see how they
behave and interact with Windows environment variables, and determine which
functions we should be using in Octave.
Octave currently uses both 'putenv' and 'unsetenv', but it's not clear to me
that they were intended to be used together. As consumers of Gnulib we should
work with those functions and feed back any changes or bugs we find so that
Gnulib can be improved for everyone.
Can one of you confirm that Octave does correctly unset environment variables
using 'unsetenv' when everything is upper case? I only have access to Wine,
and under Wine 'unsetenv' doesn't work at all for me.
This is what I get with the 4.4.0 release under Wine:
>> getenv ('FOO')
ans =
>> setenv ('FOO', 'something');
>> getenv ('FOO')
ans = something
>> unsetenv ('FOO');
>> getenv ('FOO')
ans = something
So does 'unsetenv' not work at all, or is it only when the environment
variable has lowercase letters in its name?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53922>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53922] unsetenv does not unset environment variables on Windows, Philip Nienhuis, 2018/06/29
- [Octave-bug-tracker] [bug #53922] unsetenv does not unset environment variables on Windows, Ian McCallion, 2018/06/29
- [Octave-bug-tracker] [bug #53922] unsetenv does not unset environment variables on Windows,
Mike Miller <=
- [Octave-bug-tracker] [bug #53922] unsetenv does not unset environment variables on Windows, Mike Miller, 2018/06/29
- [Octave-bug-tracker] [bug #53922] unsetenv is case sensitive on Windows, Rik, 2018/06/29
- [Octave-bug-tracker] [bug #53922] unsetenv is case sensitive on Windows, Mike Miller, 2018/06/29
- [Octave-bug-tracker] [bug #53922] unsetenv is case sensitive on Windows, Rik, 2018/06/29
- [Octave-bug-tracker] [bug #53922] setenv/unsetenv are case sensitive on Windows while getenv is case insensitive, Rik, 2018/06/29
- [Octave-bug-tracker] [bug #53922] setenv/unsetenv are case sensitive on Windows while getenv is case insensitive, Rik, 2018/06/29
- [Octave-bug-tracker] [bug #53922] setenv/unsetenv are case sensitive on Windows while getenv is case insensitive, Mike Miller, 2018/06/29