Quash Shell  0.1
A simple yet powerfull shell program
Functions
quash.c File Reference
#include "quash.h"
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include "command.h"
#include "execute.h"
#include "parsing_interface.h"
#include "memory_pool.h"

Functions

QuashState initial_state ()
 Create the initial QuashState structure. More...
 
bool is_running ()
 Query if quash should accept more input or not. More...
 
char * get_command_string ()
 Get a deep copy of the current command string. More...
 
bool is_tty ()
 
void end_main_loop (int exit_status)
 
int main (int argc, char **argv)
 Quash entry point. More...
 

Detailed Description

Quash's main file

Function Documentation

◆ get_command_string()

char* get_command_string ( )

Get a deep copy of the current command string.

Note
The free function must be called on the result eventually
Returns
A copy of the command string

◆ initial_state()

QuashState initial_state ( )

Create the initial QuashState structure.

Returns
Returns a copy of the initialized state.

◆ is_running()

bool is_running ( )

Query if quash should accept more input or not.

Returns
True if Quash should accept more input and false otherwise

◆ main()

int main ( int  argc,
char **  argv 
)

Quash entry point.

Parameters
argcargument count from the command line
argvargument vector from the command line
Returns
program exit status