On 1/22/19 6:36 PM, 積丹尼 Dan Jacobson wrote: > OK so bash is right and dash is wrong? So I should file a dash bug?
Rather, POSIX says the behavior is undefined, so both shells are right, and you cannot portably use " inside ${p+...} when in a double-quoted context (such as a heredoc). For more details: http://austingroupbugs.net/view.php?id=221 -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature