simply wrote a script on ubuntu, once run the Syntax error: Bad fd number
then found the method
on stackoverflow
rm -rf /bin/sh
ln -s /bin/bash /bin/sh
After
, the sh file is ready to run normally
Read More:
- Error when Linux executes sh script: syntax error: bad FD number
- Shell script: syntax error: bad for loop variable error resolution
- R load(xxx.Rdata) Error bad restore file magic number (file may be corrupted) — no data loaded
- Solve syntax error: unexpected end of file or /bin/bash^m: bad interpeneter: no match file or directory
- socket.error : [errno 10048] and view PID process number and port number
- Syntax error: invalid syntax
- Error syntax error: invalid syntax in PIP install XXX
- Solve the problem of syntax error: unexpected end of file or syntax error near unexpected token ` fi ‘error
- [Python] error syntax error: summary of solutions to invalid syntax
- Solve the problem of syntax error: invalid syntax in PIP install XXX
- Syntax error, syntax expected name
- Syntax error: invalid syntax before Python string
- Repo reports an error syntax error: invalid syntax
- Error in PIP command execution – syntax error: invalid syntax
- syntax error near unexpected token `then’ problem solution
- CentOS execution command error: – bash: fork: cannot allocate memory processing / viewing process number
- Python: print syntax error: problem with invalid syntax error
- Solution of Vue axios400 bad request problem
- Solve the problem of “error msb6006: link.exe Exited, bad method with code 2
- [shell] sh executes the script and reports an error syntax error: “(” unexpected “)