What is the `<( )` syntax in shell / bash, and how do I search for it? [duplicate]
Asked Answered
S

1

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?

Sidwell answered 9/11, 2021 at 0:2 Comment(3)
My follow-up question: Unix & Linux: -sh: syntax error: unexpected "(" when attempting process substitution on an embedded Linux device with bashSidwell
Don't ask this in a comment. Comments are not searchable on Stackoverflow. Post a new question instead.Brader
@user1934428, my comment above is a link to my follow-up question. It is already a new question I posted.Sidwell
S
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. [...]

Scattering answered 9/11, 2021 at 0:7 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.