Function declarations produce no trace nor trigger debug trap while having side effects

2022-10-27 Thread Erik Adelbert
Configuration Information [Automatically generated, do not change]: Machine: aarch64 OS: darwin21.6.0 Compiler: clang Compilation CFLAGS: -DSSH_SOURCE_BASHRC uname output: Darwin rio 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:29 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T8101

Re: Function declarations produce no trace nor trigger debug trap while having side effects

2022-10-28 Thread Erik Adelbert
Hello Chet and other bash maintainers, Thanks for your time. > On 27 Oct 2022, at 23:26, Chet Ramey wrote: > > we believe the current semantic to be at least unclear and would like to see > either: >> 0 the DEBUG trap called _before_ any function declaration (preferred) > > While calling the