2 ms·zsh and rc provide primitives for this, this is rc diff <{ps} <{sleep 3; ps}by wendroid 17y agozsh and rc provide primitives for this, this is rc diff <{ps} <{sleep 3; ps}vidarh 17y agoEquivalent in bash: diff <(ps) <(sleep 3; ps)