I know why this is a bug, but this is! a bug. please inform me if there is any working around this.
#!/bin/bash function bug_part() { cat $1 > sample.fisrt cat $1 > sample.second } bug_part *<(echo "TEST")* [ "$(cat sample.fisrt)" != "$(cat sample.second)" ] && echo "THIS IS A BUG" 1>&2 && exit 1 rm sample.first sample.second