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.
Read More:
- [shell] sh executes the script and reports an error syntax error: “(” unexpected “)
- Error when Linux executes sh script: syntax error: bad FD number
- When sh. / xxx.sh is executed, syntax error: “unexpected” appears
- Vue project reports an error on ie11 white screen. Script1002: syntax error
- SQL Error (3621): String or binary data would be truncated The statement has been terminated. */
- Syntax error: invalid syntax before Python string
- Solve the problem of shell script “syntax error near unexpected token `fi’”.
- Shell script syntax error near unexpected token ‘$’Do
- SCRIPT1002: syntax error File: 0. chunk.js ,SCRIPT5009: ‘Map‘ is undefined File: 0. chunk.js -Solutions
- The python script tool of ArcGIS reports an error: indentationerror: unexpected indent solution
- Syntax error near unexpected token `newline’script cannot be executed
- Shell script execution error: “syntax error near unexpected token”
- In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : EOF within quoted string
- The remote port occupation of Linux startup jar package script reports an error
- Repo reports an error syntax error: invalid syntax
- Solution to shell script error “expr: syntax error”
- Shell script: syntax error: bad for loop variable error resolution
- Prompt when executing sh file in Linux: nohup: unable to run command “. / startup. Sh”: insufficient permissions
- PHP reports “parse error: syntax error, unexpected T”_ The solution of “variable”
- File “manage.py“, line 17 ) from exc ^ SyntaxError: invalid syntax