virtualenv deactivate doesn't self-destruct on ksh: needs unset -f

Bug #422539 reported by William Shallum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Virtualenv
Fix Committed
Undecided
Jannis Leidel

Bug Description

Virtualenv's deactivate function tries to erase itself by running "unset deactivate". Unfortunately this does not work on ksh (ksh93 version 93t, 2008-11-04). Please use "unset -f deactivate" as this also works on bash and zsh.

Test script is attached

Revision history for this message
William Shallum (william) wrote :
Jannis Leidel (jezdez)
Changed in virtualenv:
status: New → Fix Committed
assignee: nobody → Jannis Leidel (jezdez)
Revision history for this message
William Shallum (william) wrote :

Unfortunately the encoded file in virtualenv.py was not updated along with the patch (tested with release 1.3.4). Please update the encoded file too.

Revision history for this message
Jannis Leidel (jezdez) wrote :
Revision history for this message
Carl Meyer (carljm) wrote :

Fixed, thus not migration to new issue tracker at https://github.com/pypa/virtualenv/issues

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.