aboutsummaryrefslogtreecommitdiff
path: root/coreutils/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/test.c')
-rw-r--r--coreutils/test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/coreutils/test.c b/coreutils/test.c
index 824ce3b5a..ddb66ddce 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -313,6 +313,9 @@ static const struct operator_t ops_table[] = {
313 { /* "-L" */ FILSYM , UNOP }, 313 { /* "-L" */ FILSYM , UNOP },
314 { /* "-S" */ FILSOCK , UNOP }, 314 { /* "-S" */ FILSOCK , UNOP },
315 { /* "=" */ STREQ , BINOP }, 315 { /* "=" */ STREQ , BINOP },
316 /* "==" is bashism, http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
317 * lists only "=" as comparison operator.
318 */
316 { /* "==" */ STREQ , BINOP }, 319 { /* "==" */ STREQ , BINOP },
317 { /* "!=" */ STRNE , BINOP }, 320 { /* "!=" */ STRNE , BINOP },
318 { /* "<" */ STRLT , BINOP }, 321 { /* "<" */ STRLT , BINOP },
@@ -357,6 +360,7 @@ static const char ops_texts[] ALIGN1 =
357 "-L" "\0" 360 "-L" "\0"
358 "-S" "\0" 361 "-S" "\0"
359 "=" "\0" 362 "=" "\0"
363 /* "==" is bashism */
360 "==" "\0" 364 "==" "\0"
361 "!=" "\0" 365 "!=" "\0"
362 "<" "\0" 366 "<" "\0"