4 ms·
URL pasting is indeed annoying. That said, second-guessing the user's input is dangerous territory, which is why no shells do what you describe by default. The
by ridiculous_fish 8y ago
URL pasting is indeed annoying. That said, second-guessing the user's input is dangerous territory, which is why no shells do what you describe by default.
The way we plan to address this in fish is to make ? an ordinary character instead of a wildcard. Then URLs will have nothing to escape.
You can opt into this change today by setting the 'qmark-noglob' feature flag:
set -U fish_features qmark-noglob
now ? no longer globs.
- faho 8y ago>Then URLs will have nothing to escape. Unfortunately, `&` is used in URLs, and is special also in the middle of a token.
- darkpuma 8y ago> "That said, second-guessing the user's input is dangerous territory, which is why no shells do what you describe by default." Sure that's true, but on the other hand I don't see anybody ever recommend default zsh. It seems pretty widely understood in the community that OMZ (or their equivalents, I have unrelated complaints with OMZ) are sane 'defaults'.
- h1d 8y agoHow is parsing "^https?://." a second guessing? It's a URL.
- ridiculous_fish 8y agoThe user inputs ? but the shell inserts \?. The shell would be guessing that the user meant to input something different than what was actually input.