Skip to content

Commit

Permalink
built_echo due to auditor
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Kulinich committed May 17, 2020
1 parent 6e12526 commit e1498fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/built_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,20 @@ static void print_arguments(t_lst *head, int i, t_global *hd, bool escape_off) {
for (; head->av[i]; i++) {
if (mx_strcmp(head->av[i], "$?") == 0) {
mx_printint(hd->last_exit_status);
print_space = true;
print_space = true;
}
else if (mx_get_var_from_str(&head->av[i])) {
while (mx_get_var_from_str(&head->av[i]))
;
}
if (head->av[i] != NULL && mx_strlen(head->av[i]) > 0
&& print_space)
mx_printstr(" ");
if (mx_strcmp(head->av[i], "$?") != 0) {
&& print_space)
mx_printstr(" ");
if (mx_strcmp(head->av[i], "$?") != 0) {
escape_off == true ? mx_printstr(head->av[i]) :
mx_print_with_escape(head->av[i]);
print_space = true;
}
print_space = true;
}
}
}

Expand Down

0 comments on commit e1498fa

Please sign in to comment.