Re: enable builtin bugs in bash 5.2

2023-05-31 Thread alex xmb ratchev
On Wed, May 31, 2023, 16:58 Robert Elz wrote: > Date:Wed, 31 May 2023 10:07:07 -0400 > From:Chet Ramey > Message-ID: > > | The documentation can always be changed to match a change in behavior. > > Of course, but you only do that wen the doc is either unclear, or

Re: enable builtin bugs in bash 5.2

2023-05-31 Thread Robert Elz
Date:Wed, 31 May 2023 10:07:07 -0400 From:Chet Ramey Message-ID: | The documentation can always be changed to match a change in behavior. Of course, but you only do that wen the doc is either unclear, or when the behaviour change is obviously to something better.

Re: enable builtin bugs in bash 5.2

2023-05-31 Thread alex xmb ratchev
On Wed, May 31, 2023, 16:07 Chet Ramey wrote: > On 5/30/23 4:46 PM, Robert Elz wrote: > > Date:Tue, 30 May 2023 15:28:57 -0400 > > From:Chet Ramey > > Message-ID: > > > >| H. That's not the only option. How about we load it if found > but mark > >| it

Re: enable builtin bugs in bash 5.2

2023-05-31 Thread Chet Ramey
On 5/30/23 4:46 PM, Robert Elz wrote: Date:Tue, 30 May 2023 15:28:57 -0400 From:Chet Ramey Message-ID: | H. That's not the only option. How about we load it if found but mark | it as not enabled? It will still take `enable -d' to delete it. That would

Re: enable builtin bugs in bash 5.2

2023-05-30 Thread alex xmb ratchev
On Tue, May 30, 2023, 22:55 alex xmb ratchev wrote: > > > On Tue, May 30, 2023, 22:47 Robert Elz wrote: > >> Date:Tue, 30 May 2023 15:28:57 -0400 >> From:Chet Ramey >> Message-ID: >> >> | H. That's not the only option. How about we load it if found but >> mar

Re: enable builtin bugs in bash 5.2

2023-05-30 Thread alex xmb ratchev
On Tue, May 30, 2023, 22:47 Robert Elz wrote: > Date:Tue, 30 May 2023 15:28:57 -0400 > From:Chet Ramey > Message-ID: > > | H. That's not the only option. How about we load it if found but > mark > | it as not enabled? It will still take `enable -d' to delete

Re: enable builtin bugs in bash 5.2

2023-05-30 Thread Robert Elz
Date:Tue, 30 May 2023 15:28:57 -0400 From:Chet Ramey Message-ID: | H. That's not the only option. How about we load it if found but mark | it as not enabled? It will still take `enable -d' to delete it. That wouldn't match the man page, and isn't really rati

Re: enable builtin bugs in bash 5.2

2023-05-30 Thread alex xmb ratchev
On Tue, May 30, 2023, 21:29 Chet Ramey wrote: > On 5/27/23 12:44 PM, Emanuele Torre wrote: > > Since bash 5.2, enable mkdir is equivalent to enable -f mkdir mkdir. > > > > But, if you use the -n flag, and mkdir is not a loaded builtin, it will > > also be equivalent to enable -f mkdir mkdir

Re: enable builtin bugs in bash 5.2

2023-05-30 Thread Chet Ramey
On 5/27/23 12:44 PM, Emanuele Torre wrote: Since bash 5.2, enable mkdir is equivalent to enable -f mkdir mkdir. But, if you use the -n flag, and mkdir is not a loaded builtin, it will also be equivalent to enable -f mkdir mkdir (so the -n flag is ignored), and the newly loaded foo will be e