On Mon, 3 Apr 2000, I wrote:
> > or to make a new quote function ${quote-colons:$1} or quote-ldap which
> > subtitutes one ":" with 2 ":"
>
> I'll think about this one.
I had been toying with the idea of implementing an operation like Perl's
substitution operator s/xxxx/yyyy/g and this seems to be a good use
for this more general facility. So I'll do it. It will be called "sg"
for "substitute globally" and you will be able to write
${if pam{$1:${sg{$2}{:}{::}}{1}{0}}
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.