Subject: None
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/04/2003 00:15:26
Revision 1.22 of mk/install/deinstall includes:

-                       if [ "${file}" != "${samplefile}" -a            \
+                       if [ ! "${file}" -ef "${samplefile}" -a         \

Under BSD/OS, this causes:

+ shift
+ [ ! /usr/pkg/etc/openssl/openssl.cnf -ef
/usr/pkg/share/examples/openssl/openssl.cnf -a -e
/usr/pkg/etc/openssl/openssl.cnf -a -e
/usr/pkg/share/examples/openssl/openssl.cnf ]
test: syntax error
+ [ 0 -gt 0 ]


So test's -ef means FILE1 and FILE2 have the same device and inode
numbers. But this doesn't exist with test provided by BSD/OS. sh doesn't
provide built-in test. The BASH version of test does support -ef.


$ sh
$ test /bin/ls -ef /bin/ls
test: syntax error
$ /bin/test /bin/ls -ef /bin/ls
test: syntax error

Is -ef supposed to be standard (POSIX?) with test and sh?

(This email is bcc'd to developer for this change.)

   Jeremy C. Reed
   http://bsd.reedmedia.net/

p.s. pkgsrc under BSD/OS is going good :)