> Bash Version: 3.2 > Patch Level: 17 > Release Status: release > > Description: > If a is an array, ${a[*]//%pattern/replacement} and > ${a[*]//#pattern/replacement} don't work. Both do nothing. The single-slash > versions ${a[*]/%pattern/replacement} and ${a[*]/#pattern/replacement} work > as expected.
Anchored pattern matches that specify removing or replacing each match don't make sense. The combination is meaningless. > One could argue about using // in this context, but anyway the behavior is > inconsistent in 2 ways: On the other hand, it's consistent with other shells implementing the feature. There's no reason to be deliberately incompatible. > - The double-slash versions worked in 3.1. It was explicitly removed in bash-3.2 as the result of a bug report -- it's in the change log. > - The double-slash versions work in 3.2 if the pattern does _not_ start > with % or #. Of course -- then they are not anchored. :-) Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://tiswww.tis.case.edu/~chet/ _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash