Subject: Re: x11-links and Solaris
To: None <mlh@goatnospamhill.org>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 09/19/2003 11:29:12
On Fri, Sep 19, 2003 at 02:06:54AM +0000, MLH wrote:

> /usr/bin/cat /usr/pkgsrc/pkgtools/x11-links/files/openwin | /usr/xpg4/bin/grep
> -v "^#" | /usr/bin/sort -u |                              while read file; do
> if [ -e /usr/openwin/$file ]; then                      /usr/bin/ln -fs
> /usr/openwin/$file
> /export/home/pkgsrc/pkgtools/x11-links/work/share/x11-links/$file;
> /usr/ucb/echo "share/x11-links/$file"           >>
> /export/home/pkgsrc/pkgtools/x11-links/work/.PLIST_SRC.files;
> fi;                                                     done
> /bin/sh: test: argument expected
> *** Error code 1
> 
> Stop.
> bmake: stopped in /usr/pkgsrc/pkgtools/x11-links
> 
> Any ideas on what exactly isn't getting substituted here?

the -e test operator only works with xpg4/bin/sh, not /bin/sh.

I've modified the x11-links package to use ${TEST}, which fixes this
on Solaris (and should work everywhere).

grant.