diff --git a/Project.pdf b/Project.pdf index b06fe4a..9bfd80b 100644 Binary files a/Project.pdf and b/Project.pdf differ diff --git a/apostolofShellFunctions.c b/apostolofShellFunctions.c index 2378ad2..a5915f5 100644 --- a/apostolofShellFunctions.c +++ b/apostolofShellFunctions.c @@ -179,6 +179,7 @@ void parseCommand(char *input, char **command, char ***argv, int *argc){ //Checks if argument is wrapped inside " or ' characters if ( (token[0] == '"' && token[strlen(token) - 1] == '"' ) || (token[0] == '\'' && token[strlen(token) - 1] == '\'' ) ){ + //Deletes wrapper characters token++; token[strlen(token) - 1] = '\0'; diff --git a/apostolofShellFunctions.h b/apostolofShellFunctions.h index 489db09..10d0ff6 100644 --- a/apostolofShellFunctions.h +++ b/apostolofShellFunctions.h @@ -38,7 +38,7 @@ void parseCommand(char *input, //String to be parsed char ***argv, //NULL terminated string array containing command's arguments int *argc); //Number of arguments -//Function trimWhitespaces trims leading and trailing whitespaces of a string +//Function trimWhitespaces trims leading and trailing whitespace of a string char *trimWhitespaces(char *string); //String to be trimmed #endif // APOSTOLOFSHELLFUNCTIONS_H_ \ No newline at end of file diff --git a/apostolofShellManpage b/apostolofShellManpage new file mode 100644 index 0000000..db837c0 --- /dev/null +++ b/apostolofShellManpage @@ -0,0 +1,12 @@ +.TH apostolofShell 1 "9/2/2018" "1.0" "apostolofShell man page" +.SH NAME +apostolofShell \- a simple unix shell implementation +.SH SYNOPSIS +apostolofShell +.OP file +.SH DESCRIPTION +Start a unix shell. Default mode is interactive. Specify a script file to use in batch mode. +.SH OPTIONS +The apostolofShell does not take any options. +.SH AUTHOR +Apostolof (apotwohd@gmail.com) \ No newline at end of file