New submission from Richard Oudkerk <shibt...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15361>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to