8000 Windows command line does not support single quotes. by BruceLee569 · Pull Request #91856 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Windows command line does not support single quotes. #91856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Windows command line does not support single quotes.
System version: Windows 10 21H2

Python version: Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32

At the command-line terminal (cmd or Powershell) you have to use double quotes to enclose the argument you wish to send. Enclose it with double quotes, and use single quotes within it. (https://stackoverflow.com/a/34379661/11687405)

For details, please refer to the GIF:![demo](https://gifyu.com/image/SLtLK)
  • Loading branch information
BruceLee569 authored Apr 23, 2022
commit befb47231dfa1b08af65e3cbffe33c3ecdb765ab
2 changes: 1 addition & 1 deletion Doc/tutorial/interpreter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ A second way of starting the interpreter is ``python -c command [arg] ...``,
which executes the statement(s) in *command*, analogous to the shell's
:option:`-c` option. Since Python statements often contain spaces or other
characters that are special to the shell, it is usually advised to quote
*command* in its entirety with single quotes.
*command* in its entirety with double quotes.

Some Python modules are also useful as scripts. These can be invoked using
``python -m module [arg] ...``, which executes the source file for *module* as
Expand Down
0