Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在官方文档中,AS_IF 宏的描述非常类似于:
Macro: AS_IF (test1, [run-if-true1], ..., [run-if-false])
我怎样才能使test1包括几个条件?(“逻辑与”和“逻辑或”的组合)
test1
谢谢
这test1只是一个 bash 命令。所以它应该用作常规的 bash 代码。例如:
AS_IF ([test "x$a" == "xb" || test "x$a" == "xc"], [echo "test passed"], [echo "test has not passed"]