Re: word selection in history expansion - !?word?%

2024-08-12 Thread Jess M
even count words until after we've identified the matched line. -- Jess M On Mon, Aug 12, 2024 at 12:43 PM Chet Ramey wrote: > On 8/9/24 2:15 AM, Jess M wrote: > > Observed behaviour: > > ``` > > $ echo word01 word02 word03 floogle > > word01 word02 word03 f

word selection in history expansion - !?word?%

2024-08-09 Thread Jess M
py to help craft a patch for this, but would appreciate some guidance as C isn't a daily driver for me. -- Jess M p.s. These are my notes in reading through the code: :% is processed in lib/readline/histexpand.cL1327 it returns value of search_match, from L296 search_match returns the ident