Robert Elz <k...@munnari.oz.au> wrote: > However, I understand that the text that is there has been there a > long time now - and some shells (just a couple) may be relying upon > that - though it is hard to justify, given that this exclusion doesn't > apply to $() recognition outside double quoted strings, so what we > probably need to do now is make it unspecified whether aliases should > be expanded when determining where a $() command substitution ends.
My impression is that all shells that implement a consistent behavior for $(), including consistent support for nested here documents inside $() constructs use the same interpretation of how a shell should work here. See https://www.in-ulm.de/~mascheck/various/cmd-subst/ for some related tests. Jörg -- EMail:jo...@schily.net (home) Jörg Schilling D-13353 Berlin joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'