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


Groups > gnu.bash.bug > #16266

greater-than + number sign = newlines in history

From Tobias Wendorff <tobwen@gmx.de>
Newsgroups gnu.bash.bug
Subject greater-than + number sign = newlines in history
Date 2020-05-03 08:28 +0200
Message-ID <mailman.1926.1588491610.3066.bug-bash@gnu.org> (permalink)
References <bb08b099-59bd-5f04-4074-bbc046e99c6c@gmx.de>

Show all headers | View raw


Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2
-fdebug-prefix-map=/build/bash-2bxm7h/bash-5.0=.
-fstack-protector-strong -Wformat -Werror=format-security -Wall
-Wno-parentheses$
uname output: Linux inwis-wohnlagen 5.4.0-0.bpo.4-amd64 #1 SMP Debian
5.4.19-1~bpo10+1 (2020-03-09) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.0
Patch Level: 3
Release Status: release

Description:
When creating a here document containing the greater-than sign followed
by number sign, newlines get added to Bash history:
```
$ history
  1  cat << 'EOF' > /dev/null
<#a

<#b

EOF
```

Repeat-By:
```
$ cat << 'EOF' > /dev/null
<#a
<#b
EOF
```

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


Thread

greater-than + number sign = newlines in history Tobias Wendorff <tobwen@gmx.de> - 2020-05-03 08:28 +0200

csiph-web