diff --git a/miniShellSRC/runMiniShell.cpp b/miniShellSRC/runMiniShell.cpp deleted file mode 100644 index 3bbb1dd1f30db58577d3ef9677ebef3a98c7970b..0000000000000000000000000000000000000000 --- a/miniShellSRC/runMiniShell.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/* Programa criado apenas para fazer testes da biblioteca miniShell */ - -#include "miniShell.cpp" - -int main(int argc, char const *argv[]) { - char *buff, *currentPath; - long size; - string command, parameter; - - while(1){ - /* Escreve onde você está. */ - size = pathconf(".", _PC_PATH_MAX); - if ((buff = (char *)malloc((size_t)size)) != NULL) - currentPath = getcwd(buff, (size_t)size); - printf("%s $ ", currentPath); - - /* Executa o comando escolhido. */ - cin >> command; - if(command == "ls"){ - parameter = ""; - cin >> parameter; - lsMini(parameter, currentPath); - } - else if(command == "cd"){ - cin >> parameter; - cdMini(parameter); - } - } - return 0; -}