我有困难嵌套报价bash脚本中猛砸嵌套的报价和eval
argv="su -c '$RVM_PATH wrapper $config_rvm \'$PASSENGER_RVM_BIN $command $options\'' web"
eval $argv
上面让我
eval: line 162: unexpected EOF while looking for matching `''
eval: line 163: syntax error: unexpected end of file
我不确定您提供的链接是否讨论了您对bash数组的使用建议。 – 2016-02-15 03:49:48
@TomHale:我的答案有一个语法错误。 – 2016-09-13 04:00:39