mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
decision: in heredoc, we will not ignore \newline
This commit is contained in:
parent
0637a637b9
commit
d72613c29f
1 changed files with 2 additions and 5 deletions
7
NOTES.md
7
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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue