On 2/28/12 1:04 PM, John Kearney wrote:
> bash treats replacement strings inconsistently in double quoted variable
> expansion.
Double-quoted pattern substitution.
> treated as literal because it is printed
> treated as quote char because otherwise it should hang waiting for '
Correct. It acts as a quote character like unquoted ${param/pat/rep}
but does not undergo quote removal because of the double quotes.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/