feat: implemented pipes and redirects + background operator

This commit is contained in:
djaidjai committed 2024-03-16 23:07:19 +01:00
1 parent 6b9bedac3c
commit 7e6c1147db
10 files changed
+246 -74

No files matched your search

+12 -1
View File
@@ -7,7 +7,17 @@
#include "scanner.h"
//TODO: handle EOF more completely (currently only EOF at the start of the line is handled)
#if EXT_PROMPT
#include <readline/readline.h>
/**
* Reads an inputline from stdin.
* @return a string containing the inputline.
*/
char *readInputLine(char const *prompt) {
return readline(prompt);
}
#else
/**
* Reads an inputline from stdin.
* @return a string containing the inputline.
@@ -43,6 +53,7 @@ char *readInputLine() {
s[i] = '\0';
return s;
}
#endif
/**
* The function isOperatorCharacter checks whether the input paramater \param c is an operator.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.