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

need \:

2006-11-05 Thread Dan Jacobson
Not sure if there is much that can be done here. The user needs to know to enter \: instead of : which causes him to just see the files in $PWD. Wait, is needing a \ reasonable? $ man /usr/share/man/man3/XBase XBase.3pm.gz XBase::Index.3pm.gz XBaseFontNameListOfFon

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

2006-11-05 Thread Dan Jacobson
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 $ echo [EMAIL PROTECTED] so that one gets all parameters to have a string appende