From d72613c29f336684eba4f2bf7543aa6bfd6d87ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Tue, 11 Feb 2025 14:19:19 +0100 Subject: [PATCH] decision: in heredoc, we will not ignore \newline --- NOTES.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/NOTES.md b/NOTES.md index be8fa39..3dd6fa3 100644 --- a/NOTES.md +++ b/NOTES.md @@ -369,8 +369,7 @@ or filename expansion is performed on word. If any part of word is quoted, the delimiter is the result of quote removal on word, and the lines in the here-document are not expanded. If word is unquoted, -all lines of the here-document are subjected to parameter expansion, and the -character sequence \\newline is ignored. +all lines of the here-document are subjected to parameter expansion. This is the correct behaviour for quoting and parameter expansion: ```shell @@ -404,9 +403,7 @@ bash-5.2$ cat << "$USER" > $USER ``` -TODO: do we need to ignore \\newline? subject says \\ is not required.. - -If we have to implement it, this is the correct behaviour: +Subject says \\ is not required, so this behaviour we will not implement: ```shell bash-5.2$ cat << EOF > hello \