Assignment to RO variable

2023-08-15 Thread Wiley Young
So this behavior of `bash`s seems like a bug to me. I stumbled across it by accident. >From within a stack of x3 functions called from a case within a for loop, when trying to assign a value to a read-only variable, `printf` and `read` both fail with exit codes of 1, and the functions, `case` and

A few suggestions for the GNU Manual

2023-07-31 Thread Wiley Young
Hi, Regarding the "Invoking Bash" page, https://www.gnu.org/software/bash/manual/html_node/Invoking-Bash.html It might be more consistent and therefore perhaps more clear for all of the newbies out there if the description of "--restricted" also began with "Equivalent to -r," as the very next des

git amend commit with backticks on cli causes tty to crash

2023-07-20 Thread Wiley Young
Hi, I'm seeing this behavior on Fedora 38. Possibly it's just some user error again, since i'm figuring out how to use vim and git at a slightly above novice level. :-) #+++ $ uname -a Linux localhost-live 6.3.7-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 9 15:21:11 U

'${#@}' expands to an integer

2023-07-05 Thread Wiley Young
Here's some code as observed "in the wild:" `[[ ${#@} -ne 0 ]] && ...` Perhaps the parser is reading this as an incomplete parameter transformation? It seems from context that the original intent was simply... `[[ $# -ne 0 ]] && ...` As it happens, the effect appears to be the same either w

Re: Help fixing NativeMessaging host: read 32-bit message

2023-06-27 Thread Wiley Young
> It is politics. All human activity is political in nature. Writing for portability is about building a widget that will appeal to a larger group of customers. Thanks for your thoughts. Wiley

Stdout from arg group of Debug trap redefines PS4

2023-06-25 Thread Wiley Young
Hi, [liveuser@localhost-live scf]$ reset; ./findscan rm_stale foo bar -ab /tmp |& cat -n Beginning at line 217 of `cat`s numbering of this xtrace output log, the read prompt from the Debug trap prints some info for a few lines, and then one line before #218, the PS4 prompt is displayed again, if

xmalloc error involving functrace, int trap and ps4

2023-06-24 Thread Wiley Young
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,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASS

`verb=(--) declare -ax verb` causes an ENOTSOCK segfault

2023-06-15 Thread Wiley Young
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,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASS

double free SIGSEGV and SELinux AVC denial

2023-06-03 Thread Wiley Young
Attachments: SELinux is preventing false from read access on the fifo_file fifo_file. * Plugin catchall (100. confidence) suggests ** If you believe that false should be allowed read access on the fifo_file fifo_file by default. Then you should report this as a bug.

double free SIGSEGV and SELinux AVC denial

2023-06-03 Thread Wiley Young
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,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASS

Segfault, 29 May '23

2023-05-29 Thread Wiley Young
Hi, While trying to capture line numbers in an array to print with the rest of the shell's debugging info, a segfault .. Wiley [liveuser@localhost-live]$ bash ... $ set -x + set -x $ echo $SHLVL + echo 2 2 $ declare -n n=BASH_SOURCE; declare -n e=LINENO; shopt -s expand_aliases + d

Error message: cannot find _struct in shared object

2023-05-27 Thread Wiley Young
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,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASS

With DEBUG trap, resizing window crashes script

2023-05-10 Thread Wiley Young
From: liveuser To: bug-bash@gnu.org Subject: With DEBUG trap, resizing window crashes script 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 -

'mapfile -O1 array' breaks '[[ -v array ]]'

2023-04-17 Thread Wiley Young
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-g> uname output: Linux localhost-live 6.0.7-301.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC> Machine Type: x86_64-redh