Skip to content

fix: handle BROWSER paths with spaces - #234

Merged
paulirish merged 1 commit into
paulirish:masterfrom
adriancmiranda:master
May 25, 2026
Merged

fix: handle BROWSER paths with spaces#234
paulirish merged 1 commit into
paulirish:masterfrom
adriancmiranda:master

Conversation

@adriancmiranda

@adriancmiranda adriancmiranda commented May 24, 2026

Copy link
Copy Markdown
Contributor

Fix git-open when BROWSER points to a path with spaces.

This keeps --print working and falls back to the system opener when BROWSER is not a valid executable path.

@paulirish

Copy link
Copy Markdown
Owner

Can that be any more concise?

@adriancmiranda

Copy link
Copy Markdown
Contributor Author

Can that be any more concise?

Sure! Shortened the description.

Escaping alone only fixes the path-with-spaces case, but I wanted to preserve compatibility and avoid interpreting an arbitrary shell string.

@adriancmiranda adriancmiranda changed the title Fix BROWSER paths with spaces fix: handle BROWSER paths with spaces May 24, 2026
@paulirish

Copy link
Copy Markdown
Owner

All groovy. Appreciate the contribution

@paulirish
paulirish merged commit 63c0e77 into paulirish:master May 25, 2026
1 check passed
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.

3 participants