What is the `<( )` syntax in shell / bash, and how do I search for it?

191 Views Asked by At

What is the <( ) syntax in shell / bash, and how do I search for it (meaning: what's it called)?

Is this related to the "heredoc" syntax?

Example: Pass a password to ssh in pure bash

sshpass -f <(printf '%s\n' your_password) ssh user@hostname

UPDATE: see: What does "< <(command args)" mean in the shell?

1

There are 1 best solutions below

0
Cyrus On

From man bash:

Process substitution allows a process's input or output to be referred to using a filename. It takes the form of <(list) or >(list). The process list is run asynchronously, and its input or output appears as a filename. This filename is passed as an argument to the current command as the result of the expansion. [...]