Re: binfmt_script and ^M

Rogier Wolff
2001-02-27T14:37:18Z

Alan Cox wrote:
> > > > (\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

Agreed. If you insist "fix" it with.....

cd /usr/bin
ln -s perl perl\r

Roger.

--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* There are old pilots, and there are bold pilots.
* There are also old, bald pilots.