As far as I test, mostly bash commands lead me to this awk warnning:
$ cd ~
awk: line 27: illegal reference to array change_array
$ ls
tmp
awk: line 27: illegal reference to array change_array
Append:
$ printf '%s
' "$PS1"
[e[0;32m]u[e[0m]@[e[34;1m]h[e[0m][?|: []?[]]:[e[0;33m]w[e[0m][e[0;32m] $ [e[0m]
awk: line 27: illegal reference to array change_array
$ printf '%s
' "$PROMPT_COMMAND"
pre_prompt_command; pure_prompt
awk: line 27: illegal reference to array change_array
$ trap -p DEBUG
awk: line 27: illegal reference to array change_array
Append:
The issue seems related to bash-it
, as I uninstall it and no more awk warning prompt.
Append:
$ awk -W version
mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
compiled limits:
max NF 32767
sprintf buffer 2040
question from:
https://stackoverflow.com/questions/65877363/whenever-i-execute-a-bash-command-i-got-a-awk-line-27-illegal-reference-to-a 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…