是否可以在不通过子shell 的情况下获取当前时间(可能还有日期)?
因为如果我没记错的话,这个命令会打开一个子shell吗?
d=$(date)
bash shell date subshell
bash ×1
date ×1
shell ×1
subshell ×1