[PATCH 1/2] hush: add [[ to the builtins list
Denys Vlasenko
vda.linux at googlemail.com
Wed Jan 11 15:40:07 UTC 2017
n Tue, Jan 10, 2017 at 8:15 PM, Kang-Che Sung <explorer09 at gmail.com> wrote:
> Otherwise the [[ EXPR ]] construct will not run.
> "hush: can't execute '[[': No such file or directory"
>
> It seems like this thing has not been working from the beginning :(
> (commit 9d617c44d2b1135d14b7dafd01a1d3992293f4d9)
It's Mike fault :) I didn't notice when he did this.
commit 39456a18a104b228de240b265bd943251219849d
Author: Mike Frysinger <vapier at gentoo.org>
Date: Sat Mar 28 12:21:57 2009 +0000
stop lying about [[ test support
diff --git a/shell/hush.c b/shell/hush.c
index ad66200..51df2d6 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -549,7 +549,6 @@ static const struct built_in_command bltins[] = {
BLTIN("." , builtin_source, "Run commands in a file"),
BLTIN(":" , builtin_true, "No-op"),
BLTIN("[" , builtin_test, "Test condition"),
- BLTIN("[[" , builtin_test, "Test condition"),
#if ENABLE_HUSH_JOB
BLTIN("bg" , builtin_fg_bg, "Resume a job in the background"),
#endif
More information about the busybox
mailing list