When executing the following code in Linux environment, the example is as follows:
Return result:
– bash:! xxxxxxxxx: event not found
The reason is:
the input command contains!, Exclamation mark, can’t constitute command, should be! It can be solved by escaping and adding the reverse symbol of “\”, and similar problems in other shell commands can be solved in the same way
Similar Posts:
- Linux shell script execution error: bad substitution [How to Solve]
- Mac open terminal error – bash:: command not found
- The shell is compiled successfully, but an error is reported when running
- How to Solve Syntax error: Bad for loop variable (ubuntu)
- [How to Solve Error] bash: pip or scrapy: command not found
- git bash bash: *: command not found
- [Solved] JSCH cannot run JAVA bash:java:Command not found.
- [MacOS Catalina new Shell] How to Solve Error: The default interactive shell is now zsh
- Vs generation fails without error [How to Solve]
- If this error is encountered during hive fetching