[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53922] unset case sensitivity
From: |
Ian McCallion |
Subject: |
[Octave-bug-tracker] [bug #53922] unset case sensitivity |
Date: |
Wed, 16 May 2018 04:54:27 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?53922>
Summary: unset case sensitivity
Project: GNU Octave
Submitted by: ianmcc
Submitted on: Wed 16 May 2018 08:54:25 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.0
Operating System: Mac OS
_______________________________________________________
Details:
Environment variable names on Windows are case insensitive (I don't know about
on unix). The setenv and getenv functions implement this correctly but
unsetenv does not.
Invoking the function below with no parameters causes it to use setenv to
clear the environment variable, which is as it should be. Invoking it
supplying the parameter "unset" causes it to use unset and the variables are
not unset.
function []= unsetbug(x)
setenv('E1','E1value');
setenv('e2','e2value');
if exist('x','var') && strcmpi(x, 'unset')
unsetenv('E2');
unsetenv('e1');
else
setenv('E2','');
setenv('e1','');
end
v1=getenv('E1')
v2=getenv('e2')
end
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53922>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53922] unset case sensitivity,
Ian McCallion <=