Is it possible to mimic process substitution on msys /mingw (with bash 3.x)

Viewed 597

I am trying to use process substitution to avoid using temporary files. I tried the following:

diff <(echo "a") <(echo "b")

on mingw32/msys (from http://www.mingw.org/ as of Dec 2013), and got:

sh: syntax error near unexpected token `('

Running the same thing on Ubuntu 12.04 returns:

1c1
< a
---
> b

The msys I use probably has bash 3.1. I was wondering if it is possible to work around the issue so that the same job can be done in msys/older bash without using temporary files.

Thanks.

1 Answers
Related