Re: Bash Reference Mamual

2020-10-17 Thread Eduardo Bustamante
On Sat, Oct 17, 2020 at 3:48 PM Craig H Maynard wrote: > Hi, > > In section 3.5.4 "Command Substitution", the following sentence may have a > typo: > > > The command substitution $(cat file) can be replaced by the equivalent > but faster $(< file). > > > My proposed change: > > > The command

Bash Reference Mamual

2020-10-17 Thread Craig H Maynard
Hi, In section 3.5.4 "Command Substitution", the following sentence may have a typo: > The command substitution $(cat file) can be replaced by the equivalent but > faster $(< file). My proposed change: > The command substitution $(cat file) can be replaced by the equivalent but > faster

Re: Bash Reference Mamual

2020-10-17 Thread Lawrence Velázquez
> On Oct 17, 2020, at 7:35 PM, Eduardo Bustamante wrote: > > <(cat file) and $(cat file) are not equivalent constructs. The former will > expand to a file name (e.g. "/dev/fd/63"), whereas the latter will expand > to the contents of the file. If you want terms you can look up, $(cat file) and