[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coding style



> I see that there's also an "fsplit"?

feeping creaturism.  %split is similar to backquote splitting (they use the
same code): multiple adjacent separator characters are treated as one separation.
%fsplit does not coalesce multiple separators.  thus:

;; echo <>{%flatten - <>{%split : :x:::y:}}
x-y
;; echo <>{%flatten - <>{%fsplit : :x:::y:}}
-x---y-
;; 

fsplit was added to support set-PATH, etc., and split was added for completeness
and because the code was already there for backquote.