top | item 24472149

(no title)

dullgiulio | 5 years ago

Redirection is not a parameter, meaning that would still not work with this Q tool.

discuss

order

jraph|5 years ago

This is not a simple redirection. cmd <(subcmd) is a bashism that redirects the output of command subcmd to something that looks like a regular file to command cmd. Command cmd receive a path at the place the <(subcmd) syntax is used. Different from cmd < f, which redirects the contents of file f to cmd's input.

So, this should work :-)

jeffbee|5 years ago

Works in other shells, not just bash

  % cat /proc/self/cmdline <(echo $SHELL) | tr '\0' ' '
  cat /proc/self/cmdline /proc/self/fd/11 /bin/zsh