Subject: Re: devel/glib2 fails on Linux with "syntax error in VERSION
To: None <pkgsrc-users@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: pkgsrc-users
Date: 03/19/2007 13:02:06
On Sat, 17 Mar 2007, Jeremy C. Reed wrote:
> > /bin/sh is a symlink to dash, and that shell is not POSIX-compliant. In
> > particular,
> > 
> > "echo '\400'" echoes an @ character.

POSIX allows that:  "If the first operand is -n, or if any of the
operands contain a backslash ('\') character, the results are
implementation-defined."

It's better to avoid using echo(1).  Use printf(1) with the "%s\n" format.

--apb (Alan Barrett)