Skip to content

Conversation

nathany
Copy link

@nathany nathany commented Jun 30, 2025

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):

powershell.exe start firefox ".\book\index.html"

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):

```powershell.exe start firefox ".\book\index.html" ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant