There was a script that had been working properly, and suddenly it reported an error
eval: line 1: syntax error: unterminated quoted string
Eval is a simple eval. After filtering the contents of the script, I found a suspected code.
eval $(echo $line 2>/dev/null |awk '{print "iosOs="$13";iosDev="$14}')
Looked at the
l
i
n
e
this
a
change
The amount
.
in
one
some
love
Besides,
Under the
and
no
There are
the
?
more
word
Period of
.
on
surface
life
make
to
o
single
a
The variable line, in some cases, does not have as many fields as the above command requires
Line is a variable that, in some cases, does not have as many fields. The above command requires a single line to have at least 14 fields. If not, an error will be reported.
after the code or to do enough fault tolerance, when the external input will change, cut.