Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: history puzzle
On Tue, Jun 4, 2024, at 3:52 PM, Ray Andrews wrote:
> Well that's a relief to hear. So I'm not crazy. My function works
> fine. I'm now just trying to figure out this "^" thing.
Look at the "FILENAME GENERATION" section of zshexpn(1).
% history -m "^" 1 # Shows everything
% history -m "^nosuchstring" 1 # Also shows everything
With EXTENDED_GLOB set, "^" matches anything except the empty string,
and "^nosuchstring" matches anything except the string "nosuchstring".
% history -m "$" 1 # Shows nothing
The character "$" is not special in patterns, so this only matches
the string "$".
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author