Vincent Lefevre <vincent-o...@vinc17.net> wrote: > On 2016-09-05 19:12:54 +0000, Mark Galeck wrote: > > The standard says in the section 2.2.3 on Double-Quotes and $ : > > "even number of unescaped double-quotes or single-quotes, if any, > > shall occur". > > Concerning this point, these even number of double-quotes and even > number of single-quotes are fulfilled with the example below: > > echo "${foo-'a"b'"}" > > But is this valid? > > The following shells output 'ab' (with the single quotes): > dash, bash --posix, mksh, posh, zsh.
I cannot repeat this with bash --posix.. ksh93, ksh88, historical Bourne Shell, Schily Bourne Shell and for me "bash" all behave the same: they write a PS2 prompt. 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://sourceforge.net/projects/schilytools/files/'