mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 09:00:46 +00:00
Fixed > redir
This commit is contained in:
parent
b44f73154f
commit
068fe94fde
@ -2041,12 +2041,13 @@ next:
|
||||
// TODO honor `
|
||||
if (ptr) {
|
||||
// must honor "
|
||||
char *oldptr = ptr;
|
||||
char *ch;
|
||||
ut32 cnt = 0;
|
||||
for (ch = cmd; ch < ptr; ++ch) {
|
||||
if (*ch == '"') ++cnt;
|
||||
}
|
||||
if (cnt == 0 || (cnt % 2)) ptr = NULL;
|
||||
if (cnt == 0 || cnt % 2) ptr = oldptr;
|
||||
}
|
||||
if (ptr) {
|
||||
int fdn = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user