[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BUG: Here-doc delimiter: unclosed quotes
From: |
Dastan Abdygali |
Subject: |
BUG: Here-doc delimiter: unclosed quotes |
Date: |
Thu, 18 Jan 2024 18:16:46 +0400 |
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: darwin19.6.0
Compiler: gcc
Compilation CFLAGS: -g -O2
uname output: Darwin lab1r2s10.42abudhabi.ae 19.6.0 Darwin Kernel Version
19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.$
Machine Type: x86_64-apple-darwin19.6.0
Bash Version: 5.2
Patch Level: 0
Release Status: release
Description:
If unclosed single quotes or unclosed double quotes are used as a
delimiter in here-doc, bash lets the user finish the quote on
the next lines. As a result delimiter contains \newline character.
Which even if pasted does not trigger the
here-doc to be concluded.
Repeat-By:
Just try the following command and try to execute:
cat <<en'
d'
Hello World!
en
d
--
Dastan Abdygali
Phone.: +971 056 260 7155
- BUG: Here-doc delimiter: unclosed quotes,
Dastan Abdygali <=