[Python-checkins] cpython (3.5): Issue26017 - Suggest enclosing command args in double quotes when using
senthil.kumaran
python-checkins at python.org
Sun Jan 17 21:42:56 EST 2016
https://hg.python.org/cpython/rev/31debd0dc0dc
changeset: 99951:31debd0dc0dc
branch: 3.5
parent: 99947:59852a79b508
user: Senthil Kumaran <senthil at uthcode.com>
date: Sun Jan 17 18:42:13 2016 -0800
summary:
Issue26017 - Suggest enclosing command args in double quotes when using characters which get interpreted by shell.
files:
Doc/installing/index.rst | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Doc/installing/index.rst b/Doc/installing/index.rst
--- a/Doc/installing/index.rst
+++ b/Doc/installing/index.rst
@@ -84,10 +84,12 @@
Python.
It's also possible to specify an exact or minimum version directly on the
-command line::
+command line. When using comparator operators such as ``>``, ``<`` or some other
+special character which get interpreted by shell, the package name and the
+version should be enclosed within double quotes::
python -m pip install SomePackage==1.0.4 # specific version
- python -m pip install 'SomePackage>=1.0.4' # minimum version
+ python -m pip install "SomePackage>=1.0.4" # minimum version
Normally, if a suitable module is already installed, attempting to install
it again will have no effect. Upgrading existing modules must be requested
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list