bash -xv issue with stderr

2024-11-02 Thread christoph
Configuration Information [Automatically generated, do not change]: Machine: aarch64 OS: darwin24.0.0 Compiler: clang Compilation CFLAGS: -DSSH_SOURCE_BASHRC -DDEFAULT_LOADABLE_BUILTINS_PATH='/opt/homebrew/Cellar/bash/5.2.37/lib/bash:/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/l

bash -xv issue with stderr

2024-11-02 Thread monochromec
Configuration Information [Automatically generated, do not change]: Machine: aarch64 OS: darwin24.0.0 Compiler: clang Compilation CFLAGS: -DSSH_SOURCE_BASHRC -DDEFAULT_LOADABLE_BUILTINS_PATH='/opt/homebrew/Cellar/bash/5.2.37/lib/bash:/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/l

Re: bash -xv issue with stderr

2024-11-02 Thread Chet Ramey
On 11/2/24 1:41 PM, monochro...@linuxinlaws.eu wrote: Bash Version: 5.2 Patch Level: 37 Release Status: release Description: Redirecting stderr to file causes output of bash -xv to be writte to file as well That's where the shell writes -v and -x output. -- ``The lyf so short, the

Re: bash -xv issue with stderr

2024-11-02 Thread #!microsuxx
~ $ bash mb.test.3stderr + echo foo exec 3<&2 BASH_XTRACEFD=3 set -x { echo foo >&2 } 2>&- On Sat, Nov 2, 2024, 19:25 wrote: > Configuration Information [Automatically generated, do not change]: > Machine: aarch64 > OS: darwin24.0.0 > Compiler: clang > Compilation CFLAGS: -DSSH_SOURCE_BASHRC >

Re: degraded error message in case of hash-bang interpreter error

2024-11-02 Thread Chet Ramey
On 11/2/24 8:43 AM, hmms...@kpnplanet.nl wrote: Bash Version: 5.2 Patch Level: 9 Release Status: release Description: If the interpreter after #! is wrong, a non-informative message prints Repeat-By: "unix2dos bashscript" starting with #!/bin/bash ./bashscript bash

Re: bash -xv issue with stderr

2024-11-02 Thread #!microsuxx
exec 3<&2 BASH_XTRACEFD=3 set -x { echo foo >&2 } 2>&- replace &- with file to out log the echo On Sat, Nov 2, 2024, 20:37 wrote: > Configuration Information [Automatically generated, do not change]: > Machine: aarch64 > OS: darwin24.0.0 > Compiler: clang > Compilation CFLAGS: -DSSH_SOURCE_BASH

Re: bash -xv issue with stderr

2024-11-02 Thread #!microsuxx
i think .. BASH_XTRACEFD=3 .. alone may also do .. u try .. On Sat, Nov 2, 2024, 20:55 #!microsuxx wrote: > exec 3<&2 > BASH_XTRACEFD=3 > set -x > { > echo foo >&2 > } 2>&- > > replace &- with file to out log the echo > > On Sat, Nov 2, 2024, 20:37 wrote: > >> Configuration Information [Autom

degraded error message in case of hash-bang interpreter error

2024-11-02 Thread hmmsjan
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,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=