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
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
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
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
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
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 '
~ $ set -f
~ $ foo=$(printf "%*s\n" 80 " " | tr " " "*") ; echo $foo
~ $ printf -v v '%*s' 200 ' ' ; v=${v// /\*} ; echo $v
*
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-
> 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