【发布时间】:2012-04-14 20:04:17
【问题描述】:
为什么会这样
timeout 10s echo "foo bar" # foo bar
但这不会
function echoFooBar {
echo "foo bar"
}
echoFooBar # foo bar
timeout 10s echoFooBar # timeout: failed to run command `echoFooBar': No such file or directory
我怎样才能让它发挥作用?
【问题讨论】:
标签: bash function shell timeout