From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: %? glob hack
Date: Thu, 04 Dec 2014 23:56:49 -0800 [thread overview]
Message-ID: <141204235649.ZM9615@torch.brasslantern.com> (raw)
In-Reply-To: <CAHYJk3TTiAMXDb8WcEaMFs5udSw0utHFDiJ+RGQvW_h9ya_33A@mail.gmail.com>
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.
prev parent reply other threads:[~2014-12-05 7:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-05 7:46 Mikael Magnusson
2014-12-05 7:56 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=141204235649.ZM9615@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).