Re: EOF at PS2

2023-06-26 Thread Chet Ramey
On 6/23/23 7:11 PM, Grisha Levit wrote: I think we can have bash honor ignoreeof and not exit after delimiting the token or command while not acting quite as bizarrely as ksh88. I think the new behavior is quite reasonable. Though it does need something to allow the exit builtin to work even

Re: EOF at PS2

2023-06-23 Thread Grisha Levit
On Fri, May 26, 2023, 17:44 Chet Ramey wrote: > > On 4/26/23 5:38 PM, Grisha Levit wrote: > > A few issues with EOF being received at PS2: > > I finally had a chance to check out the ksh88 behavior on a Solaris 10 VM. > It's pretty bizarre, but it does point to some improvements when ignoreeof > i

Re: EOF at PS2

2023-05-27 Thread alex xmb ratchev
On Fri, May 26, 2023, 23:45 Chet Ramey wrote: > On 4/26/23 5:38 PM, Grisha Levit wrote: > > A few issues with EOF being received at PS2: > > I finally had a chance to check out the ksh88 behavior on a Solaris 10 VM. > It's pretty bizarre, but it does point to some improvements when ignoreeof > is

Re: EOF at PS2

2023-05-26 Thread Chet Ramey
On 4/26/23 5:38 PM, Grisha Levit wrote: A few issues with EOF being received at PS2: I finally had a chance to check out the ksh88 behavior on a Solaris 10 VM. It's pretty bizarre, but it does point to some improvements when ignoreeof is enabled. It seems like the POSIX committee wanted the ksh

Fwd: Re: EOF at PS2

2023-05-09 Thread Chet Ramey
Forgot to add bug-bash.--- Begin Message --- On 5/4/23 9:52 PM, Martin D Kealey wrote: It's never been active in this situation, because it doesn't meet the criteria for ignoreeof: EOF on an empty line without any command. Bash has always done this, dating back to the late 1980s, an

Fwd: EOF at PS2

2023-05-04 Thread Martin D Kealey
On Thu, 4 May 2023 at 05:20, Chet Ramey wrote: > On 4/26/23 5:38 PM, Grisha Levit wrote: > > The setting of ignoreeof is ignored at PS2: > > > > bash --norc -o ignoreeof > > $ uname \ > >> ^D > > Linux > > (bash exits) > It's never been active in this situation, because it doesn't meet the > cri

Re: EOF at PS2

2023-05-03 Thread Chet Ramey
On 4/26/23 5:38 PM, Grisha Levit wrote: A few issues with EOF being received at PS2: The setting of ignoreeof is ignored at PS2: bash --norc -o ignoreeof $ uname \ ^D Linux (bash exits) It's never been active in this situation, because it doesn't meet the criteria for ignoreeof: EOF on an

EOF at PS2

2023-04-26 Thread Grisha Levit
A few issues with EOF being received at PS2: The setting of ignoreeof is ignored at PS2: bash --norc -o ignoreeof $ uname \ > ^D Linux (bash exits) If the previous line didn't terminate the current token, ^D causes the token (rather than the command) to be terminated and a new PS2 to be printe