On 2/28/12 10:52 AM, John Kearney wrote: > Actually this is something that still really confuses me as well.
The key is that bash doesn't do quote removal on the `string' part of the "${param/pat/string}" expansion. The double quotes are key; quote removal happens when the expansion is unquoted. Double quotes are supposed to inhibit quote removal, but bash's hybrid behavior of allowing quotes to escape characters but not removing them is biting us here. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/