String substitution bug

2024-11-23 Thread marcel.plch
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-p

Re: String substitution bug

2024-11-23 Thread Lawrence Velázquez
On Sat, Nov 23, 2024, at 7:11 PM, marcel.plch via Bug reports for the GNU Bourne Again SHell wrote: > I am trying to do some file management in bash and I have strings in > this format: > > 1 dir/hello.txt > 2 dir2/bar.jpg > > When I run this substitution: > ${FOO/[:space:]*/Hello} > I get this r

Re: String substitution bug

2024-11-23 Thread marcel.plch
On Sunday, November 24th, 2024 at 3:05 AM, Lawrence Velázquez wrote: > On Sat, Nov 23, 2024, at 7:11 PM, marcel.plch via Bug reports for the GNU > Bourne Again SHell wrote: > > > I am trying to do some file management in bash and I have strings in > > this format: > > > > 1 dir/hello.txt >