Re: ${//}: say how to non-destructively prefix/suffix

2006-11-05 Thread Stephane Chazelas
On Mon, Nov 06, 2006 at 02:54:25AM +0800, Dan Jacobson wrote: > Regarding the >${parameter/pattern/string} >${parameter//pattern/string} > discussion on the man page: > You don't mention what if pattern is null. > Seems that will never match. > Anyway, no way to > $ set aa bb cc > $

Re: ${//}: say how to non-destructively prefix/suffix

2006-11-05 Thread John Gatewood Ham
You can do this without external programs or pipes. See the attachment. JGH On Mon, 6 Nov 2006, Dan Jacobson wrote: Regarding the ${parameter/pattern/string} ${parameter//pattern/string} discussion on the man page: You don't mention what if pattern is null. Seems that will never ma