Re: ${| command; } funsub not setting REPLY does not error out with 'set -u' active

2025-01-25 Thread Zachary Santer
On Tue, Dec 24, 2024 at 12:10 PM Zachary Santer wrote: > > On Mon, Dec 23, 2024 at 11:50 AM Chet Ramey wrote: > > > > On 12/20/24 11:04 AM, Zachary Santer wrote: > > > > > Explicitly attempting to expand any one of those with a parameter > > > expansion when it's unset and 'set -u' is active will

Re: bash-5.2.32 fails "make install" on RHEL 9

2025-01-25 Thread Dennis Clarke via Bug reports for the GNU Bourne Again SHell
On 8/26/24 16:29, Chet Ramey wrote: On 8/24/24 11:53 PM, Dennis Clarke via Bug reports for the GNU Bourne Again SHell wrote: This seemed to happen over and over and only during "make install". There are a number of loadable builtins that require arrays and don't build without them. It's anno

Re: printf width format specifier doesn't work when assigned

2025-01-25 Thread Greg Wooledge
On Sat, Jan 25, 2025 at 15:56:39 +0100, Andreas Kähäri wrote: > Je Sat, Jan 25, 2025 at 07:16:14AM +, Ross skribis: > > However: > > foo=$(printf "%*s\n" 80 " " | tr " " "*") > > echo $foo > > acts very differently; it seems to perform ls or something similar. > This is no bug in bash

Re: printf width format specifier doesn't work when assigned

2025-01-25 Thread Andreas Kähäri
Je Sat, Jan 25, 2025 at 03:56:42PM +0100, Kusalananda Kähäri skribis: > Je Sat, Jan 25, 2025 at 07:16:14AM +, Ross skribis: > > > > Configuration Information [Automatically generated, do not change]: > > Machine: x86_64 > > OS: linux-gnu > > Compiler: gcc > > Compilation CFLAGS: -g -O2 -fno-om

Re: printf width format specifier doesn't work when assigned

2025-01-25 Thread Andreas Kähäri
Je Sat, Jan 25, 2025 at 07:16:14AM +, Ross skribis: > > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -g -O2 -fno-omit-frame-pointer -mno-omit-leaf- > frame-pointer -flto=auto -ffat-lto-objects -fstac

Re: printf width format specifier doesn't work when assigned

2025-01-25 Thread microsuxx
the \* to * works also leftover of testing .. needs set -f On Sat, Jan 25, 2025, 3:34 PM microsuxx wrote: > ~ $ set -f > ~ $ foo=$(printf "%*s\n" 80 " " | tr " " "*") ; echo $foo > > > > ~ $ printf -v v '%*s' 200 '

Re: printf width format specifier doesn't work when assigned

2025-01-25 Thread microsuxx
~ $ set -f ~ $ foo=$(printf "%*s\n" 80 " " | tr " " "*") ; echo $foo ~ $ printf -v v '%*s' 200 ' ' ; v=${v// /\*} ; echo $v *

printf width format specifier doesn't work when assigned

2025-01-25 Thread Ross
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fno-omit-frame-pointer -mno-omit-leaf- frame-pointer -flto=auto -ffat-lto-objects -fstack-protector-strong - fstack-clash-protection -Wformat -Werror=format-

-c option not working as expected

2025-01-25 Thread sanjay kumar via Bug reports for the GNU Bourne Again SHell
> cat test.sh#!/bin/bashecho "argv[0] = ${0}"echo "argv[1] = ${1}"echo "argv[2] > = ${2}"echo "count = ${#}"===> bash -c  ./test.sh abc > defargv[0] = ./test.shargv[1] =argv[2] =count = 0===> bash  > ./test.sh abc defargv[0] = ./test.shargv[1] = abcargv[2] = defco