【发布时间】:2020-05-18 23:19:29
【问题描述】:
请帮助我完全理解以下命令:
python3 code.py >result.txt 2>&1 || ( rc=$$? ; cat result.txt >/proc/self/fd/2 ; exit $$rc )
在上面的代码中,我找不到rc=$$? 和$$rc 的含义。
【问题讨论】:
-
这是来自 Makefile 还是什么?
-
@Shawn 这是一个 linux shell 命令
-
看起来它被包裹在其他东西中,在 shell 之前评估字符串(将
$$转换为$)。