init.sh: do not try to accommodate compare arguments starting with "-"
authorJim Meyering <meyering@redhat.com>
Tue, 3 Jan 2012 07:21:09 +0000 (08:21 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 3 Jan 2012 07:23:43 +0000 (08:23 +0100)
commit464f9e7b25ea50440cd453931e18329844023fef
treec42c7a73c843aecffa05ef25b54a77a1cadcdacd
parent573631b2b57b8323022e70879064a815d16799b8
init.sh: do not try to accommodate compare arguments starting with "-"

* tests/init.sh (compare_dev_null_): Do not try to accommodate
compare arguments that start with "-".  Besides, we do not worry
about this when invoking diff or cmp; why start now with sed?
Using "--" to separate options from argument would trigger sed
failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
ChangeLog
tests/init.sh