小编prl*_*l77的帖子

在bash中,[[test1 && test2]]与[[test1]] && [[test2]]之间的区别是什么?

在以下两个bash评估中有什么区别(如果有的话):

if [[ -s $file1 && $file1 -nt $file2 ]]; then

if [[ -s $file1 ]] && [[ $file1 -nt $file2 ]]; then
Run Code Online (Sandbox Code Playgroud)

bash

8
推荐指数
1
解决办法
152
查看次数

标签 统计

bash ×1