Re:Git: Deletion of merged branches taken beyond shell hacks
by gravitas on Thursday August 13, 2020 @08:05AM
(#24142479)
< is a redirect operator, the out of the item on the right is redirected to the in of the item on the left; () are just grouping operators like math to ensure that bit is self contained inline for the parser.
[ Parent
| on HN ]
Re:Git: Deletion of merged branches taken beyond shell hacks
by inyourtenement on Thursday August 13, 2020 @11:32AM
(#24144396)
That might be a way to remember what it does, but I don't think that's how it works. Try doing `echo <(ls)` to see how it differs. Or, from the manpage:
> Process substitution is supported on systems that support named pipes (FIFOs) or the /dev/fd method of naming open files. It takes the form of <(list) or >(list). The process list is run with its input or output connected to a FIFO or some file in /dev/fd. The name of this file is passed as an argument to the current command as the result of the expansion. If the >(list) form is used, writing to the file will provide input for list. If the <(list) form is used, the file passed as an argument should be read to obtain the output of list.