[issue22162] Actiavting a venv - Dash doesn't understand source
New submission from Daniel Lintott: In the documentation for venv (https://docs.python.org/3.5/library/venv.html) it gives examples for activating the venv under bash/zsh. For a long time under both Debian and Ubuntu the default shell has been Dash (https://wiki.ubuntu.com/DashAsBinSh) Dash doesn't undertsand the command 'source' so instead the venv must be activated using the . command (as is done for Fish, but using the bash activate file instead) ---------- assignee: docs@python components: Documentation messages: 225001 nosy: dlintott, docs@python priority: normal severity: normal status: open title: Actiavting a venv - Dash doesn't understand source type: enhancement _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22162> _______________________________________
Changes by Daniel Lintott <daniel@serverb.co.uk>: ---------- nosy: +eric.araujo, ezio.melotti, georg.brandl _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22162> _______________________________________
Changes by Daniel Lintott <daniel@serverb.co.uk>: ---------- title: Actiavting a venv - Dash doesn't understand source -> Activating a venv - Dash doesn't understand source _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22162> _______________________________________
Changes by Georg Brandl <georg@python.org>: ---------- nosy: -georg.brandl _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22162> _______________________________________
Éric Araujo added the comment: dash is the default system shell used to execute scripts (i.e. /bin/sh), not the default shell used for users login shell and terminal emulators. The venv/scripts/poxis/activate file seems to require bash anyway: running checkbashisms on it warns about “hash -r”. ---------- assignee: docs@python -> vinay.sajip nosy: +vinay.sajip _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22162> _______________________________________
Daniel Lintott added the comment: Hmm... just double checked this and this time has worked with the source command (previously was telling me it couldn't be found). Have double checked and indeed the default login shell is bash So feel free to close this issue ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22162> _______________________________________
Vinay Sajip added the comment: Was there a reason you couldn't close it yourself? ---------- resolution: -> not a bug status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22162> _______________________________________
participants (4)
-
Daniel Lintott
-
Georg Brandl
-
Vinay Sajip
-
Éric Araujo