Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15571

Incomplete command substitution in here-document not regarded as an error

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Oğuz <oguzismailuysal@gmail.com>
Newsgroups gnu.bash.bug
Subject Incomplete command substitution in here-document not regarded as an error
Date Thu, 7 Nov 2019 00:37:41 +0300
Lines 7
Approved bug-bash@gnu.org
Message-ID <mailman.779.1573076278.13325.bug-bash@gnu.org> (permalink)
References <CAH7i3Lp7ZQZj2FmXBa8fG8oY01GMbNKy916i1jcUt0eq57x8Tg@mail.gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1573076279 30679 209.51.188.17 (6 Nov 2019 21:37:59 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ohkWDECYYu8jAAoQaAHir0qmtFVxI220bGm19ppspeE=; b=p8+8VhTpFnXLV9XejRYeAlJviyWZddWiS1IHY2xwoMVwje2DJLaxgcX3TWbl7pcKZO bgPorExo2/+zqWdc6Ah3QnBb6U20NPKPTQO2XWKad0QY0DeQfQ9+CVVFNN6KnyGXODyK 44MA1Qw1+XTYnBYj6kH5hc8vDFrOD5xvVp9K9pQPfwOXA3g/zyo6pIyErssLjEkAmd5l kYGh/U7KlR/HUZrNYpDUa4U1F6HWYgs/dQBBsLLaLEeNUB9DroAHe6tdy8AIIo2wHzRn MJLLJ1awN5WOF0RcPwOFsDVn6JA8l1YpWFA7CIt36mP0bf6wzdEPcBYuB9wXLXdS9UNn 2+Gg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ohkWDECYYu8jAAoQaAHir0qmtFVxI220bGm19ppspeE=; b=D/ExrUFN6jam58hk5ZGlwZjdyilfCE76EvfPF9/CvTToVp5WbzOxSfANxohngslfPf SyirnSlAhPfJwACyjb3gvBKWvawdnGyp/IPsa9NMdE73V5ecWs7iS+2oz+9HPLR21sIL mKEhBTQT8/o676hOCn0jEOMk1bbgH+RnGR6Il+ywz7j+kSAp9/6W05j5Fh91nuBOeIC8 CuC5Osp3Ah6C1kgzbne/UAygEZi3lvgurxgXl6/kCvNFK6lhDRzKYtd7OkFWifTnSK7O AdPin+0Iq/bec31mghPhCPOGvPrWEgMLP+InVJsloJulZc14NaHWHZyGS4XvdVtiwPm2 fLtg==
X-Gm-Message-State APjAAAVb0DTsrEpHoVerxqf7v1xS5Qgeu3kKI5BAwXZdzp0aSUc9NNgD FKri0nxB6cw5rQYQ63jMBtO+VJX+XKhipC3MIWYKOveSyF0=
X-Google-Smtp-Source APXvYqxd9qK8Y07MA8i2WiR78rVjy/n9aIihdMssmwCLGqdbBYpvZFVm81dVgB6SpJVals5Eu+IEXsPk902jpyP9ujE=
X-Received by 2002:ac8:38cf:: with SMTP id g15mr135490qtc.254.1573076273600; Wed, 06 Nov 2019 13:37:53 -0800 (PST)
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:4864:20::829
X-Content-Filtered-By Mailman/MimeDel 2.1.23
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAH7i3Lp7ZQZj2FmXBa8fG8oY01GMbNKy916i1jcUt0eq57x8Tg@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15571

Show key headers only | View raw


cat <<EOF
$(seq 10
EOF

prints 1, while it should report a syntax error.

Can be reproduced on bash 4.4.20 and 5.0.11

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Incomplete command substitution in here-document not regarded as an error Oğuz <oguzismailuysal@gmail.com> - 2019-11-07 00:37 +0300

csiph-web