aboutsummaryrefslogtreecommitdiff
path: root/coreutils/test.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-04-10 15:25:41 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-04-10 15:25:41 +0200
commit3632cb15f16a7596a68dccfd66a2ad9496bf9fd9 (patch)
treeb1725852f1437a684c87e082ca20190819d2ddc6 /coreutils/test.c
parent4709df0f152c477c191f83e18bfecabb2fb2c1f9 (diff)
downloadbusybox-w32-3632cb15f16a7596a68dccfd66a2ad9496bf9fd9.tar.gz
busybox-w32-3632cb15f16a7596a68dccfd66a2ad9496bf9fd9.tar.bz2
busybox-w32-3632cb15f16a7596a68dccfd66a2ad9496bf9fd9.zip
shell: add comments about [[, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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"