pkgsrc-Users archive

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

Re: pkgsrc on Ubuntu: recent libtool bash/dash fallout with _bUiLdLiNk_



On 2014-09-23 17:14, Matthias Ferdinand wrote:
On Mon, Sep 22, 2014 at 07:47:28PM -0400, Greg Troxel wrote:
Joerg Sonnenberger <joerg%britannica.bec.de@localhost> writes:
> We don't support dash.

Well, it seems we aim to have code that works on shells that conform
to
POSIX.   Is this a case of something in dash feeling to meet POSIX?

One possible workaround would be to use printf instead of echo.

Yes, that is the only portable solution.

http://pubs.opengroup.org/onlinepubs/009695399/utilities/echo.html
If the first operand is -n, or if any of the operands contain a backslash ( '\' ) character, the results are implementation-defined.

dash interprets the "\1" and "\2" as ctrl-a and ctrl-b.

Gentoo found this 4 years ago have have shipped this patch with dash
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-shells/dash/files/dash-0.5.5.1-octal.patch?revision=1.1

Not that it helps unless Debian/Ubuntu/$OTHER_OS ship that patch also.

Roy


Home | Main Index | Thread Index | Old Index