diff options
| author | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-21 21:19:04 +0200 |
|---|---|---|
| committer | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-21 21:19:04 +0200 |
| commit | 6b1cb479a7b8939e8d38479191b4ce7447033b5f (patch) | |
| tree | a59390b53a63ea569a8f4bc31cd88979e35e29a4 /src/exec.c | |
| parent | 6a04328f732522d20b10138fc804ac8c7ab9a9d3 (diff) | |
remove diagnostic prints
Diffstat (limited to 'src/exec.c')
| -rw-r--r-- | src/exec.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -15,7 +15,6 @@ void execute_command_pipeline(Pipeline pipeline, int stdin_fd, int stdout_fd, bo DECLARE_MAYBE(StrPair, MaybeStrPair) MaybeStrPair parse_assignment(char* token) { - printf("%s\n", token); // TODO: ideally shouldn't mutate maybe if (token == NULL) return (MaybeStrPair){.some = false}; char* eq = strchr(token, '='); @@ -41,7 +40,6 @@ bool handle_builtin(ExecutableCommand cmd, ShellState* shstate) { // TODO: if no arg1 -> print alias list MaybeStrPair m_assignment = parse_assignment(cmd.args[1]); assert(m_assignment.some); - printf("%s:%s\n", m_assignment.value.key, m_assignment.value.val); set_map_pair(&shstate->aliases, m_assignment.value); return true; } @@ -163,6 +161,7 @@ ExecutableCommand process_pl_command(PlCommand pl_cmd, int* pgid, ShellState* sh push_to_FdRedirectVec(&fd_redirs, fd_redir); } + // TODO: I think dealiasing has certain preconditions, like arg0 not being expanded before(?). char** args = malloc(sizeof(char*) * (arg_vec.count + 1)); for (int i = 0; i < arg_vec.count; i++) { if (i == 0) { @@ -170,9 +169,7 @@ ExecutableCommand process_pl_command(PlCommand pl_cmd, int* pgid, ShellState* sh MaybeStr m_dealias = get_map_value(&shstate->aliases, arg); if (m_dealias.some) { args[0] = m_dealias.value; - printf("%s\n", args[0]); } else { - printf("Nah\n"); args[0] = arg; } } else { |
