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. But not ksh93, which outputs a ">" prompt: $ echo "${foo-'a"b'"}" > and if I type Ctrl-D, I get: $ echo "${foo-'a"b'"}" > ksh93: syntax error: `'' unmatched -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)