This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Non-portable echo usage in sysdeps/unix/make-syscalls.sh [BZ#16704 related]
- From: Jakub Bogusz <qboosh at pld-linux dot org>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 16 Jul 2015 18:10:15 +0200
- Subject: Re: Non-portable echo usage in sysdeps/unix/make-syscalls.sh [BZ#16704 related]
- Authentication-results: sourceware.org; auth=none
- References: <20150214090556 dot GA9442 at stranger dot qboosh dot pl> <alpine dot DEB dot 2 dot 10 dot 1502141732160 dot 743 at digraph dot polyomino dot org dot uk>
On Sat, Feb 14, 2015 at 05:34:09PM +0000, Joseph Myers wrote:
> On Sat, 14 Feb 2015, Jakub Bogusz wrote:
>
> > Hello,
> >
> > Some paths of make-syscalls.sh script use echo in a way specific to
> > bash or echo from GNU coreutils, expecting not to interpret escape
> > sequences by default.
> > It's contrary to what POSIX specs say and the way that echo from
> > some other shells (like ksh or dash) works (escape sequences are
> > always interpreted or are interpreted by default).
>
> Problems building with dash are bug 16704, so include [BZ #16704] in the
> ChangeLog entry. Is this a complete fix (if so, the bug number would also
> go in NEWS when committing and then the bug would be closed), or does it
> just fix one of several issues building with dash?
I didn't test build with dash; this patch is sufficient to build glibc
2.21 on x86/x86_64/x32 archs using mksh or pdksh as /bin/sh.
--
Jakub Bogusz http://qboosh.pl/