31 void write_env(
const char* env_var,
const char* val);
64 void print_job(
int job_id, pid_t pid,
const char* cmd);
void run_cd(CDCommand cmd)
Run the builtin cd (change directory) command.
Definition: execute.c:137
Command structures and functions for defining and managing commands.
void run_export(ExportCommand cmd)
Run the builtin export command.
Definition: execute.c:122
Contains information about the properties of the command.
Definition: command.h:207
Command to set environment variables.
Definition: command.h:119
char * get_current_directory(bool *should_free)
Get the real current working directory.
Definition: execute.c:28
void run_generic(GenericCommand cmd)
Run a generic (non-builtin) command.
Definition: execute.c:88
Command to kill a process based on it's job id.
Definition: command.h:141
void run_jobs()
Run the builtin jobs command to show the jobs list.
Definition: execute.c:179
void print_job_bg_complete(int job_id, pid_t pid, const char *cmd)
Print the completion of a background job to standard out.
Definition: execute.c:78
void print_job(int job_id, pid_t pid, const char *cmd)
Print a job to standard out.
Definition: execute.c:66
const char * lookup_env(const char *env_var)
Function to get environment variable values.
Definition: execute.c:40
void run_script(CommandHolder *holders)
Common entry point for all commands.
Definition: execute.c:314
void check_jobs_bg_status()
Check on background jobs to see if they have exited.
Definition: execute.c:54
void write_env(const char *env_var, const char *val)
Function to set and define environment variable values.
Command to change directories.
Definition: command.h:131
void run_kill(KillCommand cmd)
Run the builtin kill command.
Definition: execute.c:156
void run_echo(EchoCommand cmd)
Run the builtin echo command.
Definition: execute.c:106
void print_job_bg_start(int job_id, pid_t pid, const char *cmd)
Print the start up of a background job to standard out.
Definition: execute.c:72
void run_pwd()
Run the builtin pwd (print working directory) command.
Definition: execute.c:170
Commands that take any number of arguments and are not built into Quash.
Definition: command.h:99