Cannot execut rcS

Bruce Dubbs bdubbs at swbell.net
Mon Jul 9 17:46:35 PDT 2001


Hartmut Brüning wrote:
> 
> Sebastian Edman wrote:
> 
> > Problem with CR+LF
> 
> Oh yes this is a good tip. I reduced my rcS script
> and another script running without a problem to
>      #!/bin/sh
>      echo "Hallo"
> I gave them the same attributes. My rcS script didn't
> work. The other script run. A hex comparism of the
> to files showed a CR+LF after the first line of my
> rcS script which was not visible in vi, cat and less.
> 
> I hope I'll find a way killing these CRs without
> retyping all the scripts.

You can see the CRs in vi id you do a vi -b filename.
CRs show up as a ^M.

You can delete the ^Ms individually, but I like

:1,$ s/\r//g
:wq

  -- Bruce
-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message



More information about the lfs-dev mailing list