diff options
author | Denys Vlasenko | 2018-04-10 15:25:41 +0200 |
---|---|---|
committer | Denys Vlasenko | 2018-04-10 15:25:41 +0200 |
commit | 3632cb15f16a7596a68dccfd66a2ad9496bf9fd9 (patch) | |
tree | b1725852f1437a684c87e082ca20190819d2ddc6 /coreutils | |
parent | 4709df0f152c477c191f83e18bfecabb2fb2c1f9 (diff) | |
download | busybox-3632cb15f16a7596a68dccfd66a2ad9496bf9fd9.zip busybox-3632cb15f16a7596a68dccfd66a2ad9496bf9fd9.tar.gz |
shell: add comments about [[, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/coreutils/test.c b/coreutils/test.c index 824ce3b..ddb66dd 100644 --- a/coreutils/test.c +++ b/coreutils/test.c @@ -313,6 +313,9 @@ static const struct operator_t ops_table[] = { { /* "-L" */ FILSYM , UNOP }, { /* "-S" */ FILSOCK , UNOP }, { /* "=" */ STREQ , BINOP }, + /* "==" is bashism, http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html + * lists only "=" as comparison operator. + */ { /* "==" */ STREQ , BINOP }, { /* "!=" */ STRNE , BINOP }, { /* "<" */ STRLT , BINOP }, @@ -357,6 +360,7 @@ static const char ops_texts[] ALIGN1 = "-L" "\0" "-S" "\0" "=" "\0" + /* "==" is bashism */ "==" "\0" "!=" "\0" "<" "\0" |