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

Bug#436731: lh_binary_yaboot fails with: sed: -e expression #1, char 13: unterminated `s' command



Without looking at the specific problem, but here are some general
remarks:

On Wed, Aug 08, 2007 at 09:46:21PM +0200, Mathieu GELI wrote:
> >   sed: -e expression #1, char 13: unterminated `s' command
> 
> should be fixed in soon to be uploaded ~a22-1.
> 
> The problem is supposed to be triggered by the fact that :
> 1) sed doesn't like mutliline strings in script fragment

sed supports N, P and D commands which can be used for limited
multi-line work.

http://www.opengroup.org/onlinepubs/009695399/utilities/sed.html

> 2) dash's echo builtin doesn't escape \n as other shells do.

Presumably this is because dash is SUSv3 but not XSI compliant,
otherwise it's a bug in dash.

http://www.opengroup.org/onlinepubs/009695399/utilities/echo.html

As a quick comparison, both posh and Solaris' /bin/sh (which is
notoriously limited) recognize \n.

If you want to emit literal newlines, you can use printf(1).

> So easy fix, is to use GNU echo (/bin/echo) were builtin echo is used.

That should work fine for systems running GNU coreutils, but don't
forget it won't work in the busybox environment used when
bootstrapping the live image.
-- 
Trent W. Buck
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20070809/86464e71/attachment.pgp 


Reply to: