Bash:如何将“未find命令”文本传入我的陷阱函数?
我有以下几点: test.sh . Foo.sh Foo.bar Foo.baz Foo.blah 和 Foo.sh function Foo.bar() { echo 'I am a bar!' } function Foo.baz() { echo 'But, I am a baz!' } function Foo.error() { # I should suppress the 'command not found' error based on the pattern '^Foo\.([^:]+):' # If the pattern is matched, I'll need to perform […]