$(< file) 在哪里记录?
Where is $(< file) documented?
在 bash 中,可以使用 "$(< file)"
形式将文件作为参数。 $(<
的大概特殊外壳的文档在哪里?
它在手册页中,在 "Command substitution":
下
Command Substitution
Command substitution allows the output of a command to replace the com-
mand name. There are two forms:
$(command)
or
`command`
Bash performs the expansion by executing command in a subshell environ-
ment and replacing the command substitution with the standard output of
the command, with any trailing newlines deleted. Embedded newlines are
not deleted, but they may be removed during word splitting. The com-
mand substitution $(cat file) can be replaced by the equivalent but
faster $(< file).
在 bash 中,可以使用 "$(< file)"
形式将文件作为参数。 $(<
的大概特殊外壳的文档在哪里?
它在手册页中,在 "Command substitution":
下Command Substitution
Command substitution allows the output of a command to replace the com-
mand name. There are two forms:
$(command)
or
`command`
Bash performs the expansion by executing command in a subshell environ-
ment and replacing the command substitution with the standard output of
the command, with any trailing newlines deleted. Embedded newlines are
not deleted, but they may be removed during word splitting. The com-
mand substitution $(cat file) can be replaced by the equivalent but
faster $(< file).