Skip to content

Latest update inserting an invalid "&" before running scripts #5913

Description

@huntfx

Environment data

  • VS Code version: 1.34.0
  • Extension version: 2019.5.18426
  • OS and version: Windows 10
  • Python version: Python 2.7

Expected behaviour

Runs python correctly

C:\Users\peterh>C:/Python27/python.exe c:/Users/peterh/test.py

Actual behaviour

Uses invalid syntax for cmd (possibly uses powershell syntax)

C:\Users\peterh>& C:/Python27/python.exe c:/Users/peterh/test.py
& was unexpected at this time.

Steps to reproduce:

  1. Download ms-python 2019.5.18426
  2. Run file/line in cmd terminal

StackOverflow posts with issue

https://stackoverflow.com/questions/56456924/ampersand-syntax-error-running-any-python-script-in-vscode

https://stackoverflow.com/questions/56453888/run-python-file-in-terminal-fails-was-unexpected

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions