[PATCH 1.24.1] ash: backport fix for here document issues

Natanael Copa ncopa at alpinelinux.org
Thu Oct 29 16:05:04 UTC 2015


On Thu, 29 Oct 2015 11:31:39 +0000
Ron Yorston <rmy at pobox.com> wrote:

> Reported-by: Natanael Copa <ncopa at alpinelinux.org>
> Signed-off-by: Ron Yorston <rmy at pobox.com>
> ---
>  shell/ash.c                               | 72 +++++++++++++------------------
>  shell/ash_test/ash-heredoc/heredoc2.right |  2 +
>  shell/ash_test/ash-heredoc/heredoc2.tests |  7 +++
>  3 files changed, 39 insertions(+), 42 deletions(-)
>  create mode 100644 shell/ash_test/ash-heredoc/heredoc2.right
>  create mode 100644 shell/ash_test/ash-heredoc/heredoc2.tests


With this patch applied I get problem with this:

if true; then
cat >>confdefs.h <<_ACEOF
#define `date`
_ACEOF
fi


Seems like `command` inside heredoc inside if .. fi is needed to trigger it.

-nc


More information about the busybox mailing list