sed: missing LF

Denis Vlasenko vda.linux at googlemail.com
Fri Mar 2 23:20:59 UTC 2007


On Wednesday 28 February 2007 17:30, Thomas Necker wrote:
> I have the following file test.cfg:
> 
> ADDRESS=
> NETMASK=
> GATEWAY=
> 
> When I issue the command
> 
> sed "/^ADDRESS/c\ADDRESS=1.2.3.4"
> 
> I get
> 
> ADDRESS=1.2.3.4NETMASK=
> GATEWAY=
> 
> instead of
> 
> ADDRESS=1.2.3.4
> NETMASK=
> GATEWAY=
> 
> So, a LF is missing. I'm using Busybox 1.4.0. It worked with 1.0.

svn works for me. Can you test bbox svn or 1.4.1?
--
vda



More information about the busybox mailing list