Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support process substitution <(cmd) and >(cmd) #13

Open
christianparpart opened this issue Dec 18, 2023 · 0 comments
Open

support process substitution <(cmd) and >(cmd) #13

christianparpart opened this issue Dec 18, 2023 · 0 comments
Labels
enhancement New feature or request part:language Shell Language and Semantics

Comments

@christianparpart
Copy link
Member

support bash-like process substitution

syntax

<(command)

>(command)

From the bash man-page:

Process Substitution
    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.  
    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.    
    Process substitution is supported on systems that support named pipes
    (FIFOs) or the /dev/fd method of naming open files.

    When available, process substitution is performed simultaneously with 
    parameter and variable expansion, command substitution, 
    and arithmetic expansion.
@christianparpart christianparpart added the part:language Shell Language and Semantics label Dec 18, 2023
@christianparpart christianparpart changed the title support process substitution support process substitution <(cmd) and >(cmd) Dec 18, 2023
@christianparpart christianparpart added the enhancement New feature or request label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request part:language Shell Language and Semantics
Projects
None yet
Development

No branches or pull requests

1 participant