mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 23:16:05 +00:00
remove use_newshell, there is only one now
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
This commit is contained in:
parent
7b150217b3
commit
c66854e85d
@ -5202,9 +5202,6 @@ beach:
|
||||
}
|
||||
|
||||
R_API int r_core_cmd_lines(RCore *core, const char *lines) {
|
||||
if (core->use_newshell) {
|
||||
// handle newshell
|
||||
}
|
||||
int r, ret = true;
|
||||
char *nl, *data, *odata;
|
||||
|
||||
@ -5382,11 +5379,7 @@ R_API char *r_core_cmd_str_pipe(RCore *core, const char *cmd) {
|
||||
return r_core_cmd_str (core, cmd);
|
||||
}
|
||||
char *_cmd = strdup (cmd);
|
||||
if (core->use_newshell) {
|
||||
r_core_cmd (core, _cmd, 0);
|
||||
} else {
|
||||
r_core_cmd_subst (core, _cmd);
|
||||
}
|
||||
r_core_cmd (core, _cmd, 0);
|
||||
r_cons_flush ();
|
||||
r_cons_pipe_close (pipefd);
|
||||
if (r_file_exists (tmp)) {
|
||||
|
@ -300,7 +300,6 @@ struct r_core_t {
|
||||
char *lastcmd;
|
||||
char *cmdlog;
|
||||
bool cfglog; // cfg.corelog
|
||||
bool use_newshell; // cfg.corelog
|
||||
int cmdrepeat; // cmd.repeat
|
||||
const char *cmdtimes; // cmd.times
|
||||
R_DEPRECATE bool cmd_in_backticks; // whether currently executing a cmd out of backticks
|
||||
|
Loading…
Reference in New Issue
Block a user