3 ms·
> ampersand-nobg-in-token, which means that & will not create a background job if it occurs in the middle of a word. For example, echo foo&bar will print “foo&b
by azinman2 4y ago
> ampersand-nobg-in-token, which means that & will not create a background job if it occurs in the middle of a word. For example, echo foo&bar will print “foo&bar” instead of running echo foo in the background and then starting bar as a second job.
Yes! This has been annoying with curl for a long time.
- donio 4y agoSince such URLs very often come from copy & paste another way to deal with this is smart auto-quoting when a paste is detected via the "bracketed paste" feature of modern terminal emulators. zsh does this if you enable url-quote-magic.
- faho 4y agoFish also enables bracketed paste and does smart escaping when you paste inside single-quotes. (I'm a fish developer)