Re: Heredoc with a multiline delimiter

2025-03-17 Thread Chet Ramey
On 3/15/25 7:08 PM, MacBeth wrote: On Sat, Mar 15, 2025 at 12:33 PM Greg Wooledge wrote: On Sat, Mar 15, 2025 at 16:14:00 +, Nikola Novak via Bug reports for the GNU Bourne Again SHell wrote: How do you end the heredoc with a multiline delimiter such as the following: cat << "a b" You

Re: Heredoc with a multiline delimiter

2025-03-17 Thread Chet Ramey
On 3/15/25 9:18 PM, Robert Elz wrote: POSIX says: It is unspecified whether the line containing the trailing delimiter is itself subject to this line continuation. which means that nothing is required to make that work. Further, unless bash documents it as working, it is free

Ctrl+C during ~/.bashrc evaluation leads to unexpected behavior

2025-03-17 Thread Ionut Nicula
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall uname output: Linux zinc 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86

Re: Ctrl+C during ~/.bashrc evaluation leads to unexpected behavior

2025-03-17 Thread Martin D Kealey
It's important that sections of ~/.bashrc be ordered correctly to prevent such issues. Just because someone tells you to add something to the *end* of your .bashrc does not mean that's necessarily the best place to put it. 1) some boilerplate, including checking whether the shell is actually inter

Re: Ctrl+C during ~/.bashrc evaluation leads to unexpected behavior

2025-03-17 Thread Chet Ramey
On 3/17/25 3:26 PM, Ionut Nicula wrote: Bash Version: 5.2 Patch Level: 15 Release Status: release Description: Had this weird issue on my work laptop where my .bash_history file would get truncated from time to time, and I had no idea what caused it because no background or foreground