In fish shell the canonical example is this:
diff (sort a.txt|psub) (sort b.txt|psub)
The psub command performs the process substitution. diff (sort a.txt|psub) (sort b.txt|psub)
The psub command performs the process substitution.