bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash segfaults on EOF-delimited [^D] 'here-documents' (instead of ab


From: Greg Wooledge
Subject: Re: bash segfaults on EOF-delimited [^D] 'here-documents' (instead of aborting command?) when PS2 is not a static value (PS3 might have problems too)
Date: Tue, 3 Jun 2014 09:44:36 -0400
User-agent: Mutt/1.4.2.3i

On Mon, Jun 02, 2014 at 06:02:31PM -0400, osirisgothra paradisim llc wrote:
> GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) The hardware and 
> operating system.

> ubuntu@localhost:~$ PS2='$(echo "enter something>")'
> ubuntu@localhost:~$ cat <<-EOF
> enter something>here's some text
> enter something>pressing ctrl+d on the next line
> enter something>
> bash: warning: here-document at line 30 delimited by end-of-file (wanted 
> `EOF')
> Segmentation fault (core dumped)

Confirmed in 4.3.18 on HP-UX.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]