hjwp/Book-TDD-Web-Dev-Python

Quotation marks needed for "$ python -c from selenium..."?

Closed this issue · 1 comments

In the online version of the book (Third Edition Early Release), in the section on Installing Django and Selenium, I think that quotation marks might be needed around the Python command when invoking the interpreter with -c.

Currently, the book suggests this command:

(.venv) $ python -c from selenium import webdriver; webdriver.Firefox()

I had to add quotation marks to make it run:

(.venv) $ python -c "from selenium import webdriver; webdriver.Firefox()"

I tried on Windows 10 (Git Bash and PowerShell), Linux (bash), and Mac (zsh). Quotation marks were needed in each case.

I don't know if quotation marks are strictly necessary in all cases though, as the docs only say that "it is usually advised to quote command in its entirety".

I'm looking forward to the Third Edition! It's great to have access to the early release as it becomes available.

hjwp commented

fixed! thank you very much Patrick :)