wslutilities / wslu

A collection of utilities for Windows Subsystem for Linux
https://wslutiliti.es/wslu
GNU General Public License v3.0
3.44k stars 155 forks source link

wslview unable to open links with square bracket #284

Closed miduddin closed 1 year ago

miduddin commented 1 year ago

Windows Version

Windows 11

Windows Build Number

22621.2134

WSL Version

WSL 2

Distro Version

Ubuntu 22.04

WSL Utilities Version

4.1.1-1ubuntu1~22.04

Describe the bug

Example error:

image

Deleting the square brackets will open the browser just fine.

Using xdg-open (which happens to be used by some CLI tools, e.g. lazygit) also results in the same error.

Steps to Reproduce

Run wslview "https://www.google.com/search?q=[test]"

Expected behavior

Browser opens the link, just like how I can put the exact same link in browser's address bar directly.

Additional context

No response

Code of Conduct