Execute the shell script with the following error messages
This is related to the version of shell you actually use. It can be printed with LS - L/bin/*sh
, for example:
Here, SH is redirected to dash, so if sh positionpara.Sh
, dash is used. There are many ways to avoid error reporting, such as executing bash positionpara.Sh
, or executing ./positionpara.Sh
.
Read More:
- file_name.sh: 3: Syntax error: “(“ unexpected [How to Solve]
- [Solved] Shell loop execute error: syntax error: bad for loop variable
- Jenkins reported an error when running the docker permission in the shell script
- frida.InvalidArgumentError: script(line *): SyntaxError: unexpected end of string
- line 1: syntax error: unexpected “(“ [How to Solve]
- Refresh 404 after packaging Vue project, uncaught syntax error: unexpected token <
- [Solved] Error: Waveform5.vwf.vt(30): near “1“: syntax error, unexpected INTEGER NUMBER, expecting ‘)‘ Erro
- How to Solve Error: “syntax error near unexpected token `newline’”
- [Solved] Error c2226: syntax error: unexpected ‘lpstr’ type
- Template cannot be rendered due to the joint query of populate in mongoose: syntax error: unexpected token r in JSON at position 0
- [Solved] .\main.go:3:6: missing function body .\main.go:4:1: syntax error: unexpected semicolon or newline be
- [Solved] Quartus II waveform simulat error: error: waveform2 vwf. VT (30): near “,” syntax error, unexpected “, ‘# * * error
- PHP Parse error: syntax error, unexpected ‘class‘ (T_CLASS), expecting identifier (T_STRING)
- [Solved] Adb Shell Monkey Warning: can‘t create log.txt, Read-only file system
- [Solved] SHELL Run Error: “-BASH: ./TEST.SH: /BIN/BASH^M: BAD INTERPRETER: NO SUCH FILE OR DIRECTORY”
- [Solved] pagehelper Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘LIMIT 1’
- [Solved] HBase shell command Error: ERROR: connection closed
- [Solved] ssh secure shell: server responded algorithm negotiation failed
- Mybatis Error: Cause: java.sql.SQLException: sql injection violation, syntax error: syntax error, expect EQ
- ‘pre-mature EOF‘ : syntax error syntax error [How to Solve]