[BusyBox] Strange things/Error with bb ash again ...
Vladimir N. Oleynik
dzo at simtreas.ru
Thu Sep 6 10:58:43 UTC 2001
Arne and David,
> Here is a simpler test case:
>
> # ls ..
> [...works fine...]
>
> # GCC=gcc ls ..
> [...works fine...]
>
> # 2>&1 GCC=gcc ls ..
> GCC=gcc: No such file or directory
> # echo $?
> 127
>
> It appears to be related to the "2>&1" at the beginning...
>
> Now if someone could just fix it :)
I do not know, who has brought in this mistake, but to you patch.
--w
vodz
-------------- next part --------------
--- ash_old.c Thu Sep 6 20:52:18 2001
+++ ash.c Thu Sep 6 20:55:06 2001
@@ -9753,6 +9753,13 @@
redir = NULL;
n1 = NULL;
rpp = &redir;
+ /* Check for redirection which may precede command */
+ while (readtoken() == TREDIR) {
+ *rpp = n2 = redirnode;
+ rpp = &n2->nfile.next;
+ parsefname();
+ }
+ tokpushback++;
switch (readtoken()) {
case TIF:
@@ -9923,7 +9930,6 @@
if (!redir)
synexpect(-1);
case TWORD:
- case TREDIR:
tokpushback++;
n1 = simplecmd();
return n1;
More information about the busybox
mailing list