https://bugs.kde.org/show_bug.cgi?id=458041

            Bug ID: 458041
           Summary: Setting evironment variable to empty should unset the
                    env
           Product: kdevelop
           Version: 5.9.220800
          Platform: Snap
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: master.ha...@gmail.com
  Target Milestone: ---

SUMMARY
***
If there is an environment variable set that must be completely unset in order
for your app to function, there is no way to unset it through the ui
environment  variables. Currently setting the variable to empty does nothing
(kdevelop ignores it and leaves the env alone)
Setting the variable to empty (or <unset> /something) should do a unsetenv
instead of being ignored.
***


STEPS TO REPRODUCE
1. Set random env to a value prior to launching kdevelop (so that it is in the
kdev environment)
2. Set that same env to an empty on the value side in launch configuration
3. print the env from your program

OBSERVED RESULT
the env variable is the same as it originally was, and is not unset (nor even
set to empty string)

EXPECTED RESULT
Should be set to undefined as though you had called unsetenv

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 22.04.1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to