[git commit] ash: if "[[" bashism is not supported, do not handle it anywhere

Denys Vlasenko vda.linux at googlemail.com
Mon Apr 9 23:23:19 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=e93031e6dced47e8f5a86408b4aa3f89aef647c7
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/ash.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/shell/ash.c b/shell/ash.c
index 303542197..45c747dbc 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11611,10 +11611,12 @@ simplecmd(void)
 				case TLP:
 					function_flag = 0;
 					break;
+# if BASH_TEST2
 				case TWORD:
 					if (strcmp("[[", wordtext) == 0)
 						goto do_func;
 					/* fall through */
+# endif
 				default:
 					raise_error_unexpected_syntax(-1);
 				}


More information about the busybox-cvs mailing list