>I don't understand what you mean by that; $foo/${foo} in $newfiles won't
>expand because multisubstitute is being used to expand both $foo and
>$newfiles.
Oh. Yes, of course. I was wrong about that, sorry.
That's an interesting workaround indeed, but it still feels like a
workaround, and I'd rather not encourage the pattern. I prefer
Eduardo's suggested solution of encoding elglob's result - but then
again, it's still the same pattern where you expand the file list
with define -s in a multisubstitute. Maybe the pattern in unavoidable.
I'll think about it more and do *something*. Thanks for the long
explanation.
--
Laurent
Received on Sat May 25 2024 - 09:40:43 CEST