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 >>

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

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

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

Re: Error message: cannot find _struct in shared object

2023-05-30 Thread Chet Ramey
On 5/27/23 12:39 PM, Wiley Young wrote: Bash Version: 5.2 Patch Level: 15 Release Status: release Description: A syntax error on a variable assignment lead to $x being unset when `enable -n "$x" was executed, which produced this error message: ./test.sh: line 22: enable: cannot find

Re: inaccurate documentation for [[:ascii:]]

2023-05-30 Thread alex xmb ratchev
On Tue, May 30, 2023, 14:51 Emanuele Torre wrote: > On Tue, May 30, 2023 at 02:42:46PM +0200, alex xmb ratchev wrote: > > does graph mean printable > > Sort of. [[:print:]] matches all the printable characters > https://en.wikipedia.org/wiki/ASCII#Printable_characters > > [[:graph:]] matches

Re: inaccurate documentation for [[:ascii:]]

2023-05-30 Thread Emanuele Torre
On Tue, May 30, 2023 at 02:42:46PM +0200, alex xmb ratchev wrote: > does graph mean printable Sort of. [[:print:]] matches all the printable characters https://en.wikipedia.org/wiki/ASCII#Printable_characters [[:graph:]] matches all the characters that are printable, but not whitespace. In

Re: inaccurate documentation for [[:ascii:]]

2023-05-30 Thread alex xmb ratchev
does graph mean printable On Tue, May 30, 2023, 14:40 Emanuele Torre wrote: > The documentation for glob character classes is innacurate: > > > Within [ and ], character classes can be specified using the syntax > > [:class:], where class is one of the following classes defined in the > >

inaccurate documentation for [[:ascii:]]

2023-05-30 Thread Emanuele Torre
The documentation for glob character classes is innacurate: > Within [ and ], character classes can be specified using the syntax > [:class:], where class is one of the following classes defined in the > POSIX standard: > alnum alpha ascii blank cntrl digit graph lower print punct space >