Re: Heredoc leading tab/space behaviour

2022-06-24 Thread Lawrence Velázquez
On Fri, Jun 24, 2022, at 9:57 AM, Kerin Millar wrote: > On Fri, 24 Jun 2022 13:53:07 +0200 (CEST) > "Ing. Gerold Broser" via Bug reports for the GNU Bourne Again SHell > wrote: > >> heredoc-error.sh: >> >> #!/bin/bash >> sed -f - heredoc-error.sh <<-SCRIPT >> ␣␣s/something/else/ >> ⭲ s/mor

Re: [ ! ! hey ] -> [: too many arguments

2022-06-24 Thread Steffen Nurpmeso
Greg Wooledge wrote in : |On Thu, Jun 23, 2022 at 05:58:23PM -0400, Chet Ramey wrote: |> On 6/23/22 5:08 PM, Steffen Nurpmeso wrote: |>>bash -c 'if [ ! ! hey = hey ]; then echo du; fi' | |> Sure. This one isn't a common idiom for shell programmers, apparently. | |I've seen it used in a

Re: Heredoc leading tab/space behaviour

2022-06-24 Thread Chet Ramey
On 6/24/22 7:53 AM, Ing. Gerold Broser via Bug reports for the GNU Bourne Again SHell wrote: Bash Version: 4.3 Patch Level: 48 Release Status: release I know you're kind of at the mercy of your distro here, but this is almost six years old, and three versions out of date. You might consider a

Re: Heredoc leading tab/space behaviour

2022-06-24 Thread Kerin Millar
Hi Gerold, On Fri, 24 Jun 2022 13:53:07 +0200 (CEST) "Ing. Gerold Broser" via Bug reports for the GNU Bourne Again SHell wrote: > Hello, > > Configuration Information 1: > > Machine: x86_64 > OS: linux-gnu > Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.3 > -L/home/abuild/rpmbuild/BUILD

Heredoc leading tab/space behaviour

2022-06-24 Thread Ing. Gerold Broser
Hello, Configuration Information 1: Machine: x86_64 OS: linux-gnu Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.3 -L/home/abuild/rpmbuild/BUILD/bash-4.3/../readline-6.3 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-suse-linu