> Why is the `diff' command alone not exported while the piped `diff' via > `cat' works? Is this this a bug?
Figured out myself, sorry for the noise. It has to do with the exit status of the `diff', which is 1 if the files are different. So I use the pipe through `cat'.