Stahlman Family wrote: > The result of all this is that for the "+", "-", and "=" parameter > expansion > constructs, nested double-quote pairs in the rhs are stripped, but for > patsub > constructs they are not. Is this difference by design?
Yes. The patsub construct is implemented as in ksh93. When Dave put it into ksh, he decided that since Posix didn't standardize it, he was not constrained by their standardization of the historical Bourne shell behavior of nested quotes. And so we have it today. > Understood. (Provided that the phrase "the appropriate rules" does not > refer to > the respective top-level rules.) I wonder whether anyone has ever > floated the > idea of supporting a `compatible' option, which would determine whether > Bourne > shell compatibility is required in such contexts. With such an option, one > could put > > set +o compatible > > at the top of a script to enable a more natural form of nested string > processing. I will consider it for a future version. Thanks for the suggestion. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/ _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash