Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress wildcards-globbing for http(s) parameters #10416

Closed
karstenBriksoft opened this issue Apr 4, 2024 · 1 comment
Closed

Suppress wildcards-globbing for http(s) parameters #10416

karstenBriksoft opened this issue Apr 4, 2024 · 1 comment

Comments

@karstenBriksoft
Copy link

I'm using fish, version 3.7.1

Sometimes I issue commands that take a URL parameter and oftentimes I forget to explicitly quote the parameter, resulting in the message No matches for wildcard 'https://....'. See help \wildcards-globbing`.`

As far as I understand the documentation, this whole concept is there exclusively for files, making it a host-only solution. It would be super convenient if parameters that start with http:// or https:// (or other protocols) simply run until the next whitespace and do not try to interpret question marks, ampersands or asterisk characters.

@faho
Copy link
Member

faho commented Apr 4, 2024

We don't do syntactical special-cases like that.

Here's what you can do:

  • Enable the qmark-noglob feature-flag, which turns off the ? glob entirely. This will be enabled by default and then made read-only in future.
  • Paste the URL inside single-quotes, where fish will escape it automatically
  • Just quote it

I'm going to close this as a duplicate of #3649, because the ? glob is the important character for URLs.

@faho faho closed this as completed Apr 4, 2024
@faho faho added the duplicate label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants