Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
476 views
in Technique[技术] by (71.8m points)

shell - Whenever I execute a bash command, I got a "awk: line 27: illegal reference to array change_array"?

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...