Aren't you basically asking zsh to show you empty strings so nothing comes back?
--
Reply to: Kannan@xxxxxxxx
Trying to do fancier things with history
I'm clearly not understanding something. Doc says '^' is first
word in a history entry and '$' is the last. But:
% history -m "^" 1 #
Shows everything
% history -m "^nosuchstring" 1 # Also shows everything
% history -m "$" 1 # Shows nothing
... so I'm obviously missing something.