bad interpreter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 27, 2002 at 02:12:58PM +0000, Thierry ITTY wrote:
> this happens when you get a script file from dos (with cr/lf eol)
> the first line may look normal 

Aaaaahhhh, good point :)

> #!/bin/sh
> 
> but the CR (which remains invisible within a text editor that silently
> adapts itself) is misunderstood by shell 
> 
> just edit the file using vi, then ":set ff=unix" and ":wq". this will
> remove the CRs

cat -v will show the dos line-endings if you have them.

-- 
FunkyJesus System Administration Team




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux