remove use_newshell, there is only one now

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
This commit is contained in:
Anthoine Bourgeois 2021-04-19 17:26:58 +02:00 committed by pancake
parent 7b150217b3
commit c66854e85d
2 changed files with 1 additions and 9 deletions

View File

@ -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)) {

View File

@ -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