* %? glob hack
@ 2014-12-05 7:46 Mikael Magnusson
2014-12-05 7:56 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Mikael Magnusson @ 2014-12-05 7:46 UTC (permalink / raw)
To: zsh workers
There's some code that makes %? not treat the ? as a wildcard because
it's job string lookup syntax, however I feel like that's not really
necessary? If someone really uses that a lot and is bothered by having
to quote the ?, they could just alias fg/bg to noglob fg/bg, or use
whatever the bash-esque option to keep failed globs is called. Or am I
missing something here?
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: %? glob hack
2014-12-05 7:46 %? glob hack Mikael Magnusson
@ 2014-12-05 7:56 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2014-12-05 7:56 UTC (permalink / raw)
To: zsh workers
On Dec 5, 8:46am, Mikael Magnusson wrote:
} Subject: %? glob hack
}
} ... If someone really uses [ %? ] a lot and is bothered by having
} to quote the ?, they could just alias fg/bg to noglob fg/bg, or use
} whatever the bash-esque option to keep failed globs is called. Or am I
} missing something here?
What you're missing is that you can use history search syntax in command
name position, i.e. without any fg/bg in front of it to which to attach
the "noglob" alias.
That is, if "torch$ " is my prompt,
torch$ %?Src
will search for a job with "Src" in it and bring it to the foreground.
It's true this was used a lot more often before there was a key binding
for history-search-backward (and by people moving to zsh from csh, of
which there is a steadily decreasing supply).
On the other point: Just because you want %?string to work for history
search does not mean you want nonomatch behavior on other globs.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-05 7:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-05 7:46 %? glob hack Mikael Magnusson
2014-12-05 7:56 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).