Sourcing sage-env from any directory other than SAGE_ROOT or SAGE_LOCAL/bin kills the shell. This is considerably disconcerting behaviour. An explanatory message would be nice (if not a proper fix).
Once #9960 is merged, this can be closed. Don't merge any of the patches here!
CC: @gvol
Component: distribution
Keywords: sage-env source
Author: Mike Hansen
Reviewer: Ivan Andrus, John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/4029