Re: binfmt_script and ^M

Alan Cox
2001-02-27T13:52:09Z

> > > (\r\n), Linux 2.4.2 can't find an interpreter because it doesn't
> > > recognize the \r. The following patch should fix this (untested).
> >
> > Fix the script. The kernel expects a specific format
>
> For what reason? Is it a standard to not allow it, or does it break
> other things?

The line terminator is \n so if you have

#!/usr/bin/perl\r\n

Then the command to run is "/usr/bin/perl\r" - and \r is a valid file name
component