Displaying 6 results from an estimated 6 matches for "oexpr".
Did you mean:
expr
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Correctly handle test ! ! = !
...this deserves the Nobel
@@ -209,6 +210,9 @@ testcmd(int argc, char **argv)
argv[--argc] = NULL;
argv++;
argc--;
+ } else if (!strcmp(argv[0], "!")) {
+ res = 0;
+ goto recheck;
}
}
@@ -216,7 +220,7 @@ testcmd(int argc, char **argv)
eval:
t_wp = argv;
- res = !oexpr(n);
+ res ^= oexpr(n);
argv = t_wp;
if (argv[0] != NULL && argv[1] != NULL)
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Correctly handle test ! ! = !
...this deserves the Nobel
@@ -209,6 +210,9 @@ testcmd(int argc, char **argv)
argv[--argc] = NULL;
argv++;
argc--;
+ } else if (!strcmp(argv[0], "!")) {
+ res = 0;
+ goto recheck;
}
}
@@ -216,7 +220,7 @@ testcmd(int argc, char **argv)
eval:
t_wp = argv;
- res = !oexpr(n);
+ res ^= oexpr(n);
argv = t_wp;
if (argv[0] != NULL && argv[1] != NULL)
2010 Mar 22
1
[git pull] dash, sh4, README's
...URCE
[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] [JOBS]...
2010 Apr 16
0
[git pull v4] dash, sh4, ipconfig, dprintf, fstype, README's
...URCE
[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] [JOBS]...
2010 Apr 16
0
[PATCH] pull faccessat() system call
...URCE
[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] [JOBS]...
2010 Mar 28
1
[git pull v3] dash, sh4, ipconfig, dprintf, fstype, README's
...URCE
[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] [JOBS]...