1 is really wanted.
IMHO, $regsub(), even though it does return something, has obviously a main purpose and, for that purpose, it currently just acts as a regular /command, instead of an identifier. Meaning, it returns a number, but what generally matters is the specified %var it modifies/creates.
Think about having to use .echo -q $tokenize(%text,32) to tokenize %text, when the identifier returns the number of tokens created (and you don't care about this number). It's a similar thing.
This behaviour doesn't seem consistent to me and what's suggested here would make much more sense...
Last edited by cold; 28/06/04 08:57 PM.