microsoft/Terminal

Terminal should always wrap drag-dropped paths in double quotes

オープン

#8,109 opened on 2020/10/30

 (23 件のコメント) (3 件のリアクション) (0 人の担当者)C++ (9,275 件のフォーク)batch import
Area-TerminalControlHelp WantedIssue-TaskPriority-3Product-Terminal

Repository metrics

Stars
 (103,173 個のスター)
PR merge metrics
 (平均マージ 27d 19h) (30d で 24 merged PRs)

説明

Environment

Microsoft Windows [版本 10.0.18363.1139] Windows Terminal [ powershell] 版本: 1.3.2651.0 python 3.7

Steps to reproduce

1.write the followings code xx.py import sys with open(sys.argv[1]) as f: pass 2.create a txt as "xxx(1).txt", the name must include"()" 3:open windows terminal powershell, cd to the xx.py directory input “python xx.py” drop the txt into terminal run 4.if the filename contain "(xx)" can not resolve the path.

Expected behavior

it worked in cmd open the file success

Actual behavior

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\xx\Desktop\\input'

コントリビューターガイド