现代建议是使用:
$(...)
而不是旧的:
`...`
主要是为了可读性和避免嵌套时需要转义。
哪些 shell 不支持该$(...)表单,它们中的任何一个今天仍在使用吗?
shell command-substitution portability
command-substitution ×1
portability ×1
shell ×1