This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cheryl.sabella
Recipients cheryl.sabella
Date 2019-01-05.21:34:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546724069.06.0.00436819935865.issue35667@roundup.psfhosted.org>
In-reply-to
Content
On Windows 10, when I try to activate a venv in powershell where the name contains an apostrophe, I get the following error ("don't" is the name of the venv):

PS N:\projects\cpython\don't\Scripts> .\activate.ps1
At N:\projects\cpython\don't\Scripts\Activate.ps1:42 char:28
+     function global:prompt {
+                            ~
Missing closing '}' in statement block or type definition.
At N:\projects\cpython\don't\Scripts\Activate.ps1:37 char:40
+ if (! $env:VIRTUAL_ENV_DISABLE_PROMPT) {
+                                        ~
Missing closing '}' in statement block or type definition.
At N:\projects\cpython\don't\Scripts\Activate.ps1:43 char:61
+         Write-Host -NoNewline -ForegroundColor Green '(don't) '
+                                                             ~
Unexpected token ')' in expression or statement.
At N:\projects\cpython\don't\Scripts\Activate.ps1:43 char:63
+         Write-Host -NoNewline -ForegroundColor Green '(don't) '
+                                                               ~
The string is missing the terminator: '.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : MissingEndCurlyBrace

This works OK in Command Prompt.
History
Date User Action Args
2019-01-05 21:34:33cheryl.sabellasetrecipients: + cheryl.sabella
2019-01-05 21:34:29cheryl.sabellasetmessageid: <1546724069.06.0.00436819935865.issue35667@roundup.psfhosted.org>
2019-01-05 21:34:29cheryl.sabellalinkissue35667 messages
2019-01-05 21:34:28cheryl.sabellacreate