I fixed the #! problem by reversing the patch on binfmt_script.c. I'm not sure
about XDM as I don't use it.
The problem in binfmt_script.c seems to be that switches are not being handled
correctly as something like
#!/bin/sh
works correctly but
#!/usr/bin/perl --
fails.
After looking at the code it looks like the problem is with the way that the
buffer interp is now being handled with the switch part being left in this
buffer rather than being handled seperately.
Joe.