Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -g -O2 -Wall uname output: Linux localhost 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu
Bash Version: 4.0 Patch Level: 33 Release Status: release Description: `help test' output is missing `==' string equality operator. Repeat-By: $ help test Fix: Push the attached patch?
From 4328a3719f591011f5ffab0577e325f5e582e539 Mon Sep 17 00:00:00 2001 From: Mark Polesky <markpole...@yahoo.com> Date: Sun, 31 Jan 2010 14:03:35 -0800 Subject: [PATCH] builtins/test.def: Update string equality operator. --- builtins/test.def | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/builtins/test.def b/builtins/test.def index 4adff93..83f6539 100644 --- a/builtins/test.def +++ b/builtins/test.def @@ -68,8 +68,9 @@ String operators: -n STRING STRING True if string is not empty. - STRING1 = STRING2 - True if the strings are equal. + STRING1 == STRING2 + True if the strings are equal. = may be used in place of + == for strict POSIX compliance. STRING1 != STRING2 True if the strings are not equal. STRING1 < STRING2 -- 1.6.3.3