ok thanks Bart, I will try experimenting on this for fun but I have understood why it cannot work for my initial problem regards Il giorno sab 7 mag 2022 alle 23:44 Bart Schaefer ha scritto: > On Sat, May 7, 2022 at 2:11 PM Pier Paolo Grassi > wrote: > > > > I am trying with > > > > remove_comma=(-r '[:alnum:] \t\n\-') > > _values -O remove_comma -s , categories :message:'(aa bb cc)' > > > > but all I get for completion is > > func > > func = > > Yes, that's what I mean about it not working for simple lists of > values. It's looking for something to appear on the left of the "=" > to tell it which action to select on the right. > > Sadly it's also not interpreting [:alnum:] correctly. > > remove_comma=(-r 'A-Za-z0-9 \t\n\-') > _values -O remove_comma -s , -S '' categories -::message:'(aa bb cc)' > > works for > > func - > > but you need something non-empty before ::message: to start it off. > -- Pier Paolo Grassi