[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ${p+\"$p\"}
From: |
Eric Blake |
Subject: |
Re: ${p+\"$p\"} |
Date: |
Tue, 22 Jan 2019 20:23:50 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
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