Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 2
    Correction: There is no redirection in your first command. There is process substitution. In the answer you link to, there is a redirection with a process substitution. That said, while ... done < <(...) works fine enough (here's an old example from this site: unix.stackexchange.com/a/9789/70524). Please show the whole code which gives Syntax error: redirection unexpected Commented Oct 24, 2021 at 16:23
  • Similar: Subshell and process substitution Commented Oct 24, 2021 at 16:51