search for: aexpr

Displaying 6 results from an estimated 6 matches for "aexpr".

Did you mean: expr
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Fixed argument parsing crash in test
...chings <ben at decadent.org.uk> --- usr/dash/bltin/test.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/usr/dash/bltin/test.c b/usr/dash/bltin/test.c index 90135e14..baa91a57 100644 --- a/usr/dash/bltin/test.c +++ b/usr/dash/bltin/test.c @@ -268,9 +268,13 @@ aexpr(enum token n) static int nexpr(enum token n) { - if (n == UNOT) - return !nexpr(t_lex(++t_wp)); - return primary(n); + if (n != UNOT) + return primary(n); + + n = t_lex(t_wp + 1); + if (n != EOI) + t_wp++; + return !nexpr(n); } static int
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Fixed argument parsing crash in test
...chings <ben at decadent.org.uk> --- usr/dash/bltin/test.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/usr/dash/bltin/test.c b/usr/dash/bltin/test.c index 90135e14..baa91a57 100644 --- a/usr/dash/bltin/test.c +++ b/usr/dash/bltin/test.c @@ -268,9 +268,13 @@ aexpr(enum token n) static int nexpr(enum token n) { - if (n == UNOT) - return !nexpr(t_lex(++t_wp)); - return primary(n); + if (n != UNOT) + return primary(n); + + n = t_lex(t_wp + 1); + if (n != EOI) + t_wp++; + return !nexpr(n); } static int
2010 Mar 22
1
[git pull] dash, sh4, README's
...GNU_SOURCE [klibc] [CD] Restored warning when getcwd fails [klibc] [SHELL] Use uninitialized_var to silence bogus warnings [klibc] [EXPAND] Fixed non-leading slash treatment in expmeta [klibc] [BUILTIN] Fixed 3,4-argument cases for test per POSIX [klibc] [BUILTIN] Made aexpr/oexpr non-recursive [klibc] [BUILTIN] Made t_lex reentrant [klibc] [INPUT] Made setinputfd static [klibc] [SHELL] Expand ENV before using it [klibc] [OPTIONS] Added support for -l [klibc] [JOBS] Fix dowait signal race [klibc] [SIGNAL] Remove EXSIG [klibc] [...
2010 Apr 16
0
[git pull v4] dash, sh4, ipconfig, dprintf, fstype, README's
...GNU_SOURCE [klibc] [CD] Restored warning when getcwd fails [klibc] [SHELL] Use uninitialized_var to silence bogus warnings [klibc] [EXPAND] Fixed non-leading slash treatment in expmeta [klibc] [BUILTIN] Fixed 3,4-argument cases for test per POSIX [klibc] [BUILTIN] Made aexpr/oexpr non-recursive [klibc] [BUILTIN] Made t_lex reentrant [klibc] [INPUT] Made setinputfd static [klibc] [SHELL] Expand ENV before using it [klibc] [OPTIONS] Added support for -l [klibc] [JOBS] Fix dowait signal race [klibc] [SIGNAL] Remove EXSIG [klibc] [...
2010 Apr 16
0
[PATCH] pull faccessat() system call
...GNU_SOURCE [klibc] [CD] Restored warning when getcwd fails [klibc] [SHELL] Use uninitialized_var to silence bogus warnings [klibc] [EXPAND] Fixed non-leading slash treatment in expmeta [klibc] [BUILTIN] Fixed 3,4-argument cases for test per POSIX [klibc] [BUILTIN] Made aexpr/oexpr non-recursive [klibc] [BUILTIN] Made t_lex reentrant [klibc] [INPUT] Made setinputfd static [klibc] [SHELL] Expand ENV before using it [klibc] [OPTIONS] Added support for -l [klibc] [JOBS] Fix dowait signal race [klibc] [SIGNAL] Remove EXSIG [klibc] [...
2010 Mar 28
1
[git pull v3] dash, sh4, ipconfig, dprintf, fstype, README's
...GNU_SOURCE [klibc] [CD] Restored warning when getcwd fails [klibc] [SHELL] Use uninitialized_var to silence bogus warnings [klibc] [EXPAND] Fixed non-leading slash treatment in expmeta [klibc] [BUILTIN] Fixed 3,4-argument cases for test per POSIX [klibc] [BUILTIN] Made aexpr/oexpr non-recursive [klibc] [BUILTIN] Made t_lex reentrant [klibc] [INPUT] Made setinputfd static [klibc] [SHELL] Expand ENV before using it [klibc] [OPTIONS] Added support for -l [klibc] [JOBS] Fix dowait signal race [klibc] [SIGNAL] Remove EXSIG [klibc] [...