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