test: accept "==" as a synonym for "="
authorDavid A. Wheeler <dwheeler@dwheeler.com>
Tue, 22 Mar 2011 05:03:55 +0000 (06:03 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 22 Mar 2011 06:12:01 +0000 (07:12 +0100)
commit3f31ec950b78309a0d12d92d87a735b8870a2289
treeba10fd737e20a7e8f1959f6031683d674762afe5
parent2a3a094e0d9712e69f168a10685975f1a7ed5917
test: accept "==" as a synonym for "="

Make GNU coreutils' test recognize "==" as a synonym for "=".
This is already the case in GNU coreutils' expr, bash, ksh,
busybox ash, FreeBSD-current /bin/sh and /bin/test, and
OpenBSD's /bin/sh.

Before, env test a '==' a would fail with this diagnostic:
"test: ==: binary operator expected".  Now, it succeeds.
* src/test.c: Accept "==" as a synonym for "=".
* doc/coreutils.texi (String tests): Document it.
Reported as http://debbugs.gnu.org/8263
Also see http://austingroupbugs.net/view.php?id=375
doc/coreutils.texi
src/test.c