[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH 1/2] hush: add [[ to the builtins list
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2017-01-11 15:40:07
Message-ID: CAK1hOcO20S+cSuweY4SmZ2OsdNtok2po4nyPNNGohi7s+CvoSA () mail ! gmail ! com
[Download RAW message or body]
n Tue, Jan 10, 2017 at 8:15 PM, Kang-Che Sung <explorer09@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@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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic