0
我有一个shell命令寄存器的输出,我运行红宝石:红宝石:从shell命令
cat_command = "cat 0.mpg 7.mpg 15.mpg 8.mpg 1.mpg > intermed.mpg"
%x[cd #{my_dir} && #{cat_command}]
它返回
cat: 8.mpg: No such file or directory
如何抓住这个响应(挽救/错误处理)。在红宝石?