From Bash Manual:
The command substitution
$(cat file)can be replaced by the equivalent but faster
cat is from coreutils, instead of a bash builtin command.
So I am surprised that the bash manual would mention something outside bash, such as
$(< file) really a shorthand of
$(< file) completely bash, or does
$(< file) really depend on
$(< file) is completely bash, and doesn't depend on
< filea redirection or a command or both (a command with a redirection and an empty command name)?
- how can
< file(a command with a redirection and an empty command name) output to stdout?