Re: Quoted closing brace in variable default expansion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13/11/10 17:41, Jonathan Nieder wrote:
Harald van Dijk wrote:
   $ dash -c 'echo "${x:-"}"}"'
   dash: 1: Syntax error: Unterminated quoted string

  http://austingroupbugs.net/view.php?id=221
  note #399

Thanks, that helps to clarify. Unfortunately, the valid alternative given there:

  sh -c 'echo "${x:-\}}"'

seemingly incorrectly prints \} with dash and with bash, so that is a non-option at this time for me.
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux