我正在做一些命令行执行,我在这篇博客文章中system或IO.popen在文件中学到了,并且我遇到了错误.
为什么反引号出现,它意味着什么,以及如何继续?请解释.
system('./err.rb')
-bash: syntax error near unexpected token `'./err.rb''
Run Code Online (Sandbox Code Playgroud)
类似地,当我跑IO.popen:
output = IO.popen('./err.rb')
-bash: syntax error near unexpected token `('
Run Code Online (Sandbox Code Playgroud)