應該如何修正command
變量才能獲得正確的行爲?引用函數參數錯誤
#!/bin/bash
function f ()
{
echo "$2"
}
command="f --option=\"One Two Three\" --another_option=\"Four Five Six\""
$command
f --option="One Two Three" --another_option="Four Five Six"
首先調用是錯誤的,第二個 - 右
$> ./test.sh
Two
--another_option=Four Five Six
也出現在[Unix/Linux中stackexchange](http://unix.stackexchange.com/q/20349/4667) –