Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: history puzzle



Aren't you basically asking zsh to show you empty strings so nothing comes back?

--
Reply to: Kannan@xxxxxxxx

From: Ray Andrews <rayandrews@xxxxxxxxxxx>
Sent: Tuesday, June 4, 2024 11:00 AM
To: Zsh Users
Subject: history puzzle

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. 



Messages sorted by: Reverse Date, Date, Thread, Author