On Tue, 23 May 2023 at 23:32, Chet Ramey wrote:
> On 5/22/23 10:56 PM, Martin D Kealey wrote:
>
> > For example, if one is filling an array in random order, rather than
> > progressively adding to the end, then it is useful and makes sense to be
> > able to ask the array for its highest index.
>
Missing final `;':
"$BASH" --pretty-print <<< $'${ : \;;}'
${ : \; }
"$BASH" --pretty-print <<< $'${ : \;\n}'
${ : \; }
"$BASH" --pretty-print <<< $'${ : \&;}'
${ : \& }
"$BASH" --pretty-print <<< $'${ : \&\n}'
${ : \& }
Correct:
"$BASH" --pretty-print <<< $'${ : \;&}'
${ : \; & }
"$BASH" --
The below seems like a cheap fix for UTF-8 locales. Since Bash falls
back to using the single-byte glob matching functions when presented
with invalid multibyte strings, this patch makes the glob code avoid
calling the ctype functions or strcoll when handling individual bytes
>0x7F (in a UTF-8 loca
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
On Sat, May 27, 2023 at 09:39:18AM -0700, Wiley Young wrote:
> 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 _struct in shared object :
> /usr/bin/b
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 enabled instead of disabled:
$ ./bash -c 'c
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASS