0

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?

Gabriel Staples
  • 36,492
  • 15
  • 194
  • 265
  • My follow-up question: [Unix & Linux: `-sh: syntax error: unexpected "("` when attempting process substitution on an embedded Linux device with `bash`](https://unix.stackexchange.com/questions/676676/sh-syntax-error-unexpected-when-attempting-process-substitution-on-an-e) – Gabriel Staples Nov 09 '21 at 00:36
  • Don't ask this in a comment. Comments are not searchable on Stackoverflow. Post a new question instead. – user1934428 Nov 09 '21 at 09:38
  • @user1934428, my comment above is a _link_ to my follow-up question. It is already a new question I posted. – Gabriel Staples Nov 09 '21 at 14:58

1 Answers1

1

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. [...]

Cyrus
  • 84,225
  • 14
  • 89
  • 153