Sujet : Re: Different variable assignments
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.shellDate : 12. Oct 2024, 22:32:33
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <veepth$ao2d$2@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Pan/0.160 (Toresk; )
On Sat, 12 Oct 2024 17:57:16 +0200, Frank Winkler wrote:
I'm still thinking about the difference between "< <(...)" and "<<<
`...`"
Not sure about the extra “<”, but “<(«cmd»)” gets substituted with the
name of a file (i.e. not stdin) that the process can open and read to get
the output of «cmd». Similarly “>(«cmd»)” gets substituted with the name
of a file (i.e. not stdout) that the process can open and write to feed
input to waiting «cmd».
“<<” and “<<<”, on the other hand, are for specifying alternative sources
of inline data for stdin, or you can use “«fd»<<” and “«fd»<<<” to specify
an alternative «fd» that the process will expect to find already open for
reading, to obtain that data.