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

Functions

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 ()
 Check if Quash is receiving input from the command line (TTY) More...
 
void end_main_loop ()
 Causes the execution loop to end.
 
int main (int argc, char **argv)
 Quash entry point. More...
 

Detailed Description

Quash's main file

Function Documentation

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
bool is_running ( )

Query if quash should accept more input or not.

Returns
True if Quash should accept more input and false otherwise
bool is_tty ( )

Check if Quash is receiving input from the command line (TTY)

Returns
True if stdin is a TTY false if stdin is not a TTY
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