bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Segfault, 29 May '23


From: Wiley Young
Subject: Segfault, 29 May '23
Date: Mon, 29 May 2023 22:17:51 -0700

Hi,
  While trying to capture line numbers in an array to print with the rest
of the shell's debugging info, a segfault ......zzzzzzzz
  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
+ declare -n n=BASH_SOURCE
+ declare -n e=LINENO
+ shopt -s expand_aliases
$ alias L_='"l[8-${#n[@]}]+=$e"; m=("${l[@]}")'
+ alias 'L_="l[8-${#n[@]}]+=$e"; m=("${l[@]}")'
$ L_
+ 'l[8-0]+=10'
bash: l[8-0]+=10: command not found
+ m=("${l[@]}")
Segmentation fault (core dumped)
[liveuser@localhost-live]$ echo $SHLVL
1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]