Skip to content

Commit e2cb6a6

Browse files
committed
Update README instructions for web browsers on Windows
Git Bash tries to open `http://.bookindex.html/` with the provided command. Quoting the path solved the problem. ```shell start firefox.exe ".\book\index.html" ``` Cmd and Powershell both work with or without quotes. Since `start` works in PowerShell, I removed Start-Process from the README to simplify it, but I've only tested on Windows 11. I don't know if start works everywhere, but I do have a Windows 10 machine I can check on if you like? Using Ubuntu in Windows Terminal (WSL) has the same problem as Git Bash if the path isn't quoted. It works when using a command like this (Windows version of Firefox): ```bash powershell.exe start firefox ".\book\index.html" ```
1 parent ef1ce8f commit e2cb6a6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,16 @@ _Firefox:_
5757

5858
```bash
5959
$ firefox book/index.html # Linux
60-
$ open -a "Firefox" book/index.html # OS X
61-
$ Start-Process "firefox.exe" .\book\index.html # Windows (PowerShell)
62-
$ start firefox.exe .\book\index.html # Windows (Cmd)
60+
$ open -a "Firefox" book/index.html # macOS
61+
$ start firefox.exe ".\book\index.html" # Windows
6362
```
6463

6564
_Chrome:_
6665

6766
```bash
6867
$ google-chrome book/index.html # Linux
69-
$ open -a "Google Chrome" book/index.html # OS X
70-
$ Start-Process "chrome.exe" .\book\index.html # Windows (PowerShell)
71-
$ start chrome.exe .\book\index.html # Windows (Cmd)
68+
$ open -a "Google Chrome" book/index.html # macOS
69+
$ start chrome.exe ".\book\index.html" # Windows
7270
```
7371

7472
To run the tests:

0 commit comments

Comments
 (0)