Tag: 抨击

从Rakefile执行bash命令

我想从Rakefile执行一些bash命令。 我的主动shell是bash ,我将从bash调用rake 。 我在我的Rakefile包含了以下内容 task :hello do %{echo "World!"} end 但执行rake hello没有输出? 如何从Rakefile执行bash命令? 注 :这不是重复的,因为它具体询问如何从Rakefile执行bash命令。