On 10/30/19 7:12 AM, Oğuz wrote: > Since > > bash -c '${1##*""}' _ foo > > prints an empty line, I was expecting > > bash -c '${1##*"${1##*}"}' _ foo > > to print an empty line too, but instead it prints foo.
Thanks for the report. The shell doesn't handle the second quoted string correctly. I'll fix it for the next devel branch push. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/