[New-bugs-announce] [issue15361] venv's Activate.ps1 causes broken prompt with powershell
Richard Oudkerk
report at bugs.python.org
Sun Jul 15 21:02:40 CEST 2012
New submission from Richard Oudkerk <shibturn at gmail.com>:
If I create a venv on Windows called "py3" then py3/Scripts/Activate.ps1 defines the prompt to be
function prompt {
Write-Host -NoNewline -ForegroundColor Green [(py3) ]
_OLD_VIRTUAL_PROMPT
}
However this prompt function does not work properly, and running
Write-Host -NoNewline -ForegroundColor Green [(py3) ]
on its own produces an error because of the lack of quotes around (py3). Adding quotes as shown in the patch seems to fix the problem.
----------
components: Library (Lib)
files: prompt.patch
keywords: patch
messages: 165545
nosy: sbt, vinay.sajip
priority: normal
severity: normal
stage: patch review
status: open
title: venv's Activate.ps1 causes broken prompt with powershell
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file26387/prompt.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15361>
_______________________________________
More information about the New-bugs-announce
mailing list