Skip to content

RFE: Add unset #27

Description

@djerius

Sometimes you need to delete an environment variable completely (just setting it to the empty string isn't enough). It'd be great if one could do something like:

$config->unset( 'FOO' );

which would translate into unset FOO, ( or unsetenv FOO for csh/tcsh).

Activity

  1. plicease commented on Jul 2, 2022

    @plicease
    Member

    Agree, with the caveat that we need to support as well as possible all supported shells. I believe cmd.exe and command.com actually do unset with SET FOO=, (but that is a limitation of those shells) and I am not sure about PowerShell.

  2. plicease commented on Sep 4, 2026

    @plicease
    Member

    Implemented in #30

  3. djerius commented on Sep 4, 2026

    @djerius
    Author

    Thanks!

  4. plicease commented on Sep 4, 2026

    @plicease
    Member

    Thanks!

    sure. sorry it took so long :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions