Diff output of 2 Unix commands

bash:

$ diff <(cmd1) <(cmd2)

zsh:

$ diff =(cmd1) =(cmd2)